static Vftbl() { AbiToProjectionVftable = new Vftbl { IUnknownVftbl = global::WinRT.Interop.IUnknownVftbl.AbiToProjectionVftbl, Resolve = Do_Abi_Resolve }; AbiToProjectionVftablePtr = Marshal.AllocHGlobal(Marshal.SizeOf <Vftbl>()); Marshal.StructureToPtr(AbiToProjectionVftable, AbiToProjectionVftablePtr, false); }
static unsafe Vftbl() { AbiToProjectionVftable = new Vftbl { IUnknownVftbl = global::WinRT.Interop.IUnknownVftbl.AbiToProjectionVftbl, InterfaceSupportsErrorInfo_0 = Do_Abi_InterfaceSupportsErrorInfo_0 }; var nativeVftbl = (IntPtr *)Marshal.AllocCoTaskMem(Marshal.SizeOf <Vftbl>()); Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false); AbiToProjectionVftablePtr = (IntPtr)nativeVftbl; }
static unsafe Vftbl() { AbiToProjectionVftable = new Vftbl { IUnknownVftbl = global::WinRT.Interop.IUnknownVftbl.AbiToProjectionVftbl, GetGuid_0 = Do_Abi_GetGuid_0, GetSource_1 = Do_Abi_GetSource_1, GetDescription_2 = Do_Abi_GetDescription_2, GetHelpFile_3 = Do_Abi_GetHelpFile_3, GetHelpFileContent_4 = Do_Abi_GetHelpFileContent_4 }; var nativeVftbl = (IntPtr *)Marshal.AllocCoTaskMem(Marshal.SizeOf <Vftbl>()); Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false); AbiToProjectionVftablePtr = (IntPtr)nativeVftbl; }