Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /COM /ComDispatch.cs
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Runtime.InteropServices; | |
| using COM = System.Runtime.InteropServices.ComTypes; | |
| namespace System.Management.Automation | |
| { | |
| /// <summary> | |
| /// The IDispatch interface. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| internal interface IDispatch | |
| { | |
| [] | |
| int GetTypeInfoCount(out int info); | |
| [] | |
| int GetTypeInfo(int iTInfo, int lcid, out COM.ITypeInfo? ppTInfo); | |
| void GetIDsOfNames( | |
| [MarshalAs(UnmanagedType.LPStruct)] Guid iid, | |
| [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] rgszNames, | |
| int cNames, | |
| int lcid, | |
| [Out, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.I4)] int[] rgDispId); | |
| void Invoke( | |
| int dispIdMember, | |
| [MarshalAs(UnmanagedType.LPStruct)] Guid iid, | |
| int lcid, | |
| COM.INVOKEKIND wFlags, | |
| [In, Out][MarshalAs(UnmanagedType.LPArray)] COM.DISPPARAMS[] paramArray, | |
| out object? pVarResult, | |
| out ComInvoker.EXCEPINFO pExcepInfo, | |
| out uint puArgErr); | |
| } | |
| } | |