|
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981
using global::System;
using global::System.Diagnostics;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.CompilerServices;
using global::System.Runtime.InteropServices;
using global::System.Runtime.Versioning;
using winmdroot = global::Windows.Win32;
namespace Windows.Win32
{
namespace System.Ole
{
[Guid("A7ABA9C1-8983-11CF-8F20-00805F2CD064")]
[SupportedOSPlatform("windows5.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal unsafe partial struct IProvideMultipleClassInfo
:IVTable<IProvideMultipleClassInfo,IProvideMultipleClassInfo.Vtbl>,IComIID {
/// <inheritdoc cref="QueryInterface(global::System.Guid*, void**)"/>
internal unsafe winmdroot.Foundation.HRESULT QueryInterface(in global::System.Guid riid, out void* ppvObject)
{
fixed (void** ppvObjectLocal = &ppvObject)
{
fixed (global::System.Guid* riidLocal = &riid)
{
winmdroot.Foundation.HRESULT __result = this.QueryInterface(riidLocal, ppvObjectLocal);
return __result;
}
}
}
public unsafe winmdroot.Foundation.HRESULT QueryInterface(global::System.Guid* riid, void** ppvObject)
{
return ((delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IProvideMultipleClassInfo*)Unsafe.AsPointer(ref this), riid, ppvObject);
}
public uint AddRef()
{
return ((delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint>)lpVtbl[1])((IProvideMultipleClassInfo*)Unsafe.AsPointer(ref this));
}
public uint Release()
{
return ((delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint>)lpVtbl[2])((IProvideMultipleClassInfo*)Unsafe.AsPointer(ref this));
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetClassInfo(IProvideMultipleClassInfo* pThis, winmdroot.System.Com.ITypeInfo** ppTI)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetClassInfo(ppTI);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe void GetClassInfo(winmdroot.System.Com.ITypeInfo** ppTI)
{
((delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IProvideMultipleClassInfo*)Unsafe.AsPointer(ref this), ppTI).ThrowOnFailure();
}
/// <inheritdoc cref="GetGUID(uint, global::System.Guid*)"/>
internal unsafe void GetGUID(uint dwGuidKind, out global::System.Guid pGUID)
{
fixed (global::System.Guid* pGUIDLocal = &pGUID)
{
this.GetGUID(dwGuidKind, pGUIDLocal);
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetGUID(IProvideMultipleClassInfo* pThis, uint dwGuidKind, global::System.Guid* pGUID)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetGUID(dwGuidKind, pGUID);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe void GetGUID(uint dwGuidKind, global::System.Guid* pGUID)
{
((delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint ,global::System.Guid* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IProvideMultipleClassInfo*)Unsafe.AsPointer(ref this), dwGuidKind, pGUID).ThrowOnFailure();
}
/// <inheritdoc cref="GetMultiTypeInfoCount(uint*)"/>
internal unsafe winmdroot.Foundation.HRESULT GetMultiTypeInfoCount(out uint pcti)
{
fixed (uint* pctiLocal = &pcti)
{
winmdroot.Foundation.HRESULT __result = this.GetMultiTypeInfoCount(pctiLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetMultiTypeInfoCount(IProvideMultipleClassInfo* pThis, uint* pcti)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetMultiTypeInfoCount(pcti);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Retrieves the number of type information blocks that this object must provide.</summary>
/// <param name="pcti">The number of type information blocks that this object must provide.</param>
/// <returns>This method can return the standard return values E_INVALIDARG, E_POINTER, E_FAIL, and S_OK.</returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/ocidl/nf-ocidl-iprovidemultipleclassinfo-getmultitypeinfocount">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT GetMultiTypeInfoCount(uint* pcti)
{
return ((delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IProvideMultipleClassInfo*)Unsafe.AsPointer(ref this), pcti);
}
/// <inheritdoc cref="GetInfoOfIndex(uint, winmdroot.System.Ole.MULTICLASSINFO_FLAGS, winmdroot.System.Com.ITypeInfo**, uint*, uint*, global::System.Guid*, global::System.Guid*)"/>
internal unsafe winmdroot.Foundation.HRESULT GetInfoOfIndex(uint iti, winmdroot.System.Ole.MULTICLASSINFO_FLAGS dwFlags, winmdroot.System.Com.ITypeInfo** pptiCoClass, out uint pdwTIFlags, out uint pcdispidReserved, out global::System.Guid piidPrimary, out global::System.Guid piidSource)
{
fixed (global::System.Guid* piidSourceLocal = &piidSource)
{
fixed (global::System.Guid* piidPrimaryLocal = &piidPrimary)
{
fixed (uint* pcdispidReservedLocal = &pcdispidReserved)
{
fixed (uint* pdwTIFlagsLocal = &pdwTIFlags)
{
winmdroot.Foundation.HRESULT __result = this.GetInfoOfIndex(iti, dwFlags, pptiCoClass, pdwTIFlagsLocal, pcdispidReservedLocal, piidPrimaryLocal, piidSourceLocal);
return __result;
}
}
}
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetInfoOfIndex(IProvideMultipleClassInfo* pThis, uint iti, winmdroot.System.Ole.MULTICLASSINFO_FLAGS dwFlags, winmdroot.System.Com.ITypeInfo** pptiCoClass, uint* pdwTIFlags, uint* pcdispidReserved, global::System.Guid* piidPrimary, global::System.Guid* piidSource)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetInfoOfIndex(iti, dwFlags, pptiCoClass, pdwTIFlags, pcdispidReserved, piidPrimary, piidSource);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Retrieves the type information from the specified index.</summary>
/// <param name="iti">The index of the type information for which you want to obtain information. Index 0 is the default interface of the extender object; index *pcti-1 is the index of the base object.</param>
/// <param name="dwFlags"></param>
/// <param name="pptiCoClass">The <a href="https://msdn.microsoft.com/">coclass</a> type information for the requested contributor. See <a href="https://docs.microsoft.com/previous-versions/windows/desktop/api/oaidl/nn-oaidl-itypeinfo">ITypeInfo</a>.</param>
/// <param name="pdwTIFlags">The bitfield flag.</param>
/// <param name="pcdispidReserved">The number of DISPIDs the default interface of <i>pptiCoClass</i> reserves for its own use. This number can be used to calculate the amount to offset DISPIDs in the reserved range implemented by the object this class is extending.</param>
/// <param name="piidPrimary">The IID of the primary interface for the requested contributor.</param>
/// <param name="piidSource">The IID of the default source interface for the requested contributor.</param>
/// <returns>This method can return the standard return values E_INVALIDARG, E_POINTER, E_FAIL, and S_OK.</returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/ocidl/nf-ocidl-iprovidemultipleclassinfo-getinfoofindex">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT GetInfoOfIndex(uint iti, winmdroot.System.Ole.MULTICLASSINFO_FLAGS dwFlags, winmdroot.System.Com.ITypeInfo** pptiCoClass, uint* pdwTIFlags, uint* pcdispidReserved, global::System.Guid* piidPrimary, global::System.Guid* piidSource)
{
return ((delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint ,winmdroot.System.Ole.MULTICLASSINFO_FLAGS ,winmdroot.System.Com.ITypeInfo** ,uint* ,uint* ,global::System.Guid* ,global::System.Guid* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IProvideMultipleClassInfo*)Unsafe.AsPointer(ref this), iti, dwFlags, pptiCoClass, pdwTIFlags, pcdispidReserved, piidPrimary, piidSource);
}
internal unsafe global::Windows.Win32.Foundation.HRESULT QueryInterface<T>(out T* ppv)
where T : unmanaged
{
var hr = this.QueryInterface(typeof(T).GUID, out void* pv);
if (hr.Succeeded)
{
ppv = (T*)pv;
}
else
{
ppv = null;
}
return hr;
}
internal struct Vtbl
{
internal delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
internal delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint> AddRef_2;
internal delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint> Release_3;
internal delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetClassInfo_4;
internal delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint ,global::System.Guid* ,winmdroot.Foundation.HRESULT> GetGUID_5;
internal delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint* ,winmdroot.Foundation.HRESULT> GetMultiTypeInfoCount_6;
internal delegate *unmanaged [Stdcall]<IProvideMultipleClassInfo*,uint ,winmdroot.System.Ole.MULTICLASSINFO_FLAGS ,winmdroot.System.Com.ITypeInfo** ,uint* ,uint* ,global::System.Guid* ,global::System.Guid* ,winmdroot.Foundation.HRESULT> GetInfoOfIndex_7;
}
public static void PopulateVTable(Vtbl* vtable)
{
vtable->GetClassInfo_4 = &GetClassInfo;
vtable->GetGUID_5 = &GetGUID;
vtable->GetMultiTypeInfoCount_6 = &GetMultiTypeInfoCount;
vtable->GetInfoOfIndex_7 = &GetInfoOfIndex;
}
private void** lpVtbl;
/// <summary>The IID guid for this interface.</summary>
/// <value>{a7aba9c1-8983-11cf-8f20-00805f2cd064}</value>
internal static readonly Guid IID_Guid = new Guid(0xA7ABA9C1, 0x8983, 0x11CF, 0x8F, 0x20, 0x00, 0x80, 0x5F, 0x2C, 0xD0, 0x64);
static ref readonly Guid IComIID.Guid {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xC1,0xA9,0xAB,0xA7,0x83,0x89,0xCF,0x11,0x8F,0x20,0x00,0x80,0x5F,0x2C,0xD0,0x64 };
return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
}
}
[Guid("A7ABA9C1-8983-11CF-8F20-00805F2CD064"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()]
[SupportedOSPlatform("windows5.0")]
internal interface Interface
:winmdroot.System.Ole.IProvideClassInfo.Interface,winmdroot.System.Ole.IProvideClassInfo2.Interface {
[PreserveSig()]
unsafe new winmdroot.Foundation.HRESULT GetClassInfo(winmdroot.System.Com.ITypeInfo** ppTI);
[PreserveSig()]
unsafe new winmdroot.Foundation.HRESULT GetGUID(uint dwGuidKind, global::System.Guid* pGUID);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetMultiTypeInfoCount(uint* pcti);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetInfoOfIndex(uint iti, winmdroot.System.Ole.MULTICLASSINFO_FLAGS dwFlags, winmdroot.System.Com.ITypeInfo** pptiCoClass, uint* pdwTIFlags, uint* pcdispidReserved, global::System.Guid* piidPrimary, global::System.Guid* piidSource);
}
}
}
}
|