mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
I (Jason Shirk) ran https://github.com/dotnet/codeformatter with the default rules, basically: codeformatter /nocopyright "/c:DEBUG,UNIX,CORECLR" @files.rsp This caused a few problems building, which were fixed up manually. Notable changes: `this.` is removed unless needed to disambiguate. private instance fields are renamed to have a `_` prefix. private static fields are renamed to have a `s_` prefix. I left some projects alone (like PackageManagement) and also left some generated code alone.
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
/********************************************************************++
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
--********************************************************************/
|
|
|
|
using System.Runtime.InteropServices;
|
|
using COM = System.Runtime.InteropServices.ComTypes;
|
|
|
|
namespace System.Management.Automation
|
|
{
|
|
/// <summary>
|
|
/// Summary description for IDispatch.
|
|
/// </summary>
|
|
[Guid("00020400-0000-0000-c000-000000000046")]
|
|
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
[ComImport]
|
|
internal interface IDispatch
|
|
{
|
|
[PreserveSig]
|
|
int GetTypeInfoCount(out int info);
|
|
|
|
[PreserveSig]
|
|
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);
|
|
}
|
|
} |