|
// ------------------------------------------------------------------------------
// <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("A6EF9860-C720-11D0-9337-00A0C90DCAA9")]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal unsafe partial struct IDispatchEx
:IVTable<IDispatchEx,IDispatchEx.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]<IDispatchEx*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IDispatchEx*)Unsafe.AsPointer(ref this), riid, ppvObject);
}
public uint AddRef()
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,uint>)lpVtbl[1])((IDispatchEx*)Unsafe.AsPointer(ref this));
}
public uint Release()
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,uint>)lpVtbl[2])((IDispatchEx*)Unsafe.AsPointer(ref this));
}
/// <inheritdoc cref="GetTypeInfoCount(uint*)"/>
internal unsafe winmdroot.Foundation.HRESULT GetTypeInfoCount(out uint pctinfo)
{
fixed (uint* pctinfoLocal = &pctinfo)
{
winmdroot.Foundation.HRESULT __result = this.GetTypeInfoCount(pctinfoLocal);
return __result;
}
}
public unsafe winmdroot.Foundation.HRESULT GetTypeInfoCount(uint* pctinfo)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDispatchEx*)Unsafe.AsPointer(ref this), pctinfo);
}
public unsafe winmdroot.Foundation.HRESULT GetTypeInfo(uint iTInfo, uint lcid, winmdroot.System.Com.ITypeInfo** ppTInfo)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDispatchEx*)Unsafe.AsPointer(ref this), iTInfo, lcid, ppTInfo);
}
/// <inheritdoc cref="GetIDsOfNames(global::System.Guid*, winmdroot.Foundation.PWSTR*, uint, uint, int*)"/>
internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId)
{
fixed (int* rgDispIdLocal = rgDispId)
{
fixed (winmdroot.Foundation.PWSTR* rgszNamesLocal = rgszNames)
{
fixed (global::System.Guid* riidLocal = &riid)
{
if (rgszNames.Length != rgDispId.Length) throw new ArgumentException();
winmdroot.Foundation.HRESULT __result = this.GetIDsOfNames(riidLocal, rgszNamesLocal, (uint )rgDispId.Length, lcid, rgDispIdLocal);
return __result;
}
}
}
}
public unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(global::System.Guid* riid, winmdroot.Foundation.PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IDispatchEx*)Unsafe.AsPointer(ref this), riid, rgszNames, cNames, lcid, rgDispId);
}
/// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.VARIANT*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
internal unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in winmdroot.System.Com.DISPPARAMS pDispParams, winmdroot.System.Variant.VARIANT* pVarResult, winmdroot.System.Com.EXCEPINFO* pExcepInfo, uint* puArgErr)
{
fixed (winmdroot.System.Com.DISPPARAMS* pDispParamsLocal = &pDispParams)
{
fixed (global::System.Guid* riidLocal = &riid)
{
winmdroot.Foundation.HRESULT __result = this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, pVarResult, pExcepInfo, puArgErr);
return __result;
}
}
}
public unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, global::System.Guid* riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, [Optional] winmdroot.System.Variant.VARIANT* pVarResult, [Optional] winmdroot.System.Com.EXCEPINFO* pExcepInfo, [Optional] uint* puArgErr)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDispatchEx*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}
/// <inheritdoc cref="GetDispID(winmdroot.Foundation.BSTR, uint, int*)"/>
internal unsafe winmdroot.Foundation.HRESULT GetDispID(winmdroot.Foundation.BSTR bstrName, uint grfdex, out int pid)
{
fixed (int* pidLocal = &pid)
{
winmdroot.Foundation.HRESULT __result = this.GetDispID(bstrName, grfdex, pidLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetDispID(IDispatchEx* pThis, winmdroot.Foundation.BSTR bstrName, uint grfdex, int* pid)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetDispID(bstrName, grfdex, pid);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe winmdroot.Foundation.HRESULT GetDispID(winmdroot.Foundation.BSTR bstrName, uint grfdex, int* pid)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.BSTR ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IDispatchEx*)Unsafe.AsPointer(ref this), bstrName, grfdex, pid);
}
/// <inheritdoc cref="InvokeEx(int, uint, ushort, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.VARIANT*, winmdroot.System.Com.EXCEPINFO*, winmdroot.System.Com.IServiceProvider*)"/>
internal unsafe winmdroot.Foundation.HRESULT InvokeEx(int id, uint lcid, ushort wFlags, in winmdroot.System.Com.DISPPARAMS pdp, winmdroot.System.Variant.VARIANT* pvarRes, winmdroot.System.Com.EXCEPINFO* pei, winmdroot.System.Com.IServiceProvider* pspCaller)
{
fixed (winmdroot.System.Com.DISPPARAMS* pdpLocal = &pdp)
{
winmdroot.Foundation.HRESULT __result = this.InvokeEx(id, lcid, wFlags, pdpLocal, pvarRes, pei, pspCaller);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT InvokeEx(IDispatchEx* pThis, int id, uint lcid, ushort wFlags, winmdroot.System.Com.DISPPARAMS* pdp, [Optional] winmdroot.System.Variant.VARIANT* pvarRes, [Optional] winmdroot.System.Com.EXCEPINFO* pei, [Optional] winmdroot.System.Com.IServiceProvider* pspCaller)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.InvokeEx(id, lcid, wFlags, pdp, pvarRes, pei, pspCaller);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe winmdroot.Foundation.HRESULT InvokeEx(int id, uint lcid, ushort wFlags, winmdroot.System.Com.DISPPARAMS* pdp, [Optional] winmdroot.System.Variant.VARIANT* pvarRes, [Optional] winmdroot.System.Com.EXCEPINFO* pei, [Optional] winmdroot.System.Com.IServiceProvider* pspCaller)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,uint ,ushort ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,winmdroot.System.Com.IServiceProvider* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IDispatchEx*)Unsafe.AsPointer(ref this), id, lcid, wFlags, pdp, pvarRes, pei, pspCaller);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT DeleteMemberByName(IDispatchEx* pThis, winmdroot.Foundation.BSTR bstrName, uint grfdex)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.DeleteMemberByName(bstrName, grfdex);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public winmdroot.Foundation.HRESULT DeleteMemberByName(winmdroot.Foundation.BSTR bstrName, uint grfdex)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.BSTR ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IDispatchEx*)Unsafe.AsPointer(ref this), bstrName, grfdex);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT DeleteMemberByDispID(IDispatchEx* pThis, int id)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.DeleteMemberByDispID(id);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public winmdroot.Foundation.HRESULT DeleteMemberByDispID(int id)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IDispatchEx*)Unsafe.AsPointer(ref this), id);
}
/// <inheritdoc cref="GetMemberProperties(int, uint, winmdroot.System.Ole.FDEX_PROP_FLAGS*)"/>
internal unsafe winmdroot.Foundation.HRESULT GetMemberProperties(int id, uint grfdexFetch, out winmdroot.System.Ole.FDEX_PROP_FLAGS pgrfdex)
{
fixed (winmdroot.System.Ole.FDEX_PROP_FLAGS* pgrfdexLocal = &pgrfdex)
{
winmdroot.Foundation.HRESULT __result = this.GetMemberProperties(id, grfdexFetch, pgrfdexLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetMemberProperties(IDispatchEx* pThis, int id, uint grfdexFetch, winmdroot.System.Ole.FDEX_PROP_FLAGS* pgrfdex)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetMemberProperties(id, grfdexFetch, pgrfdex);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe winmdroot.Foundation.HRESULT GetMemberProperties(int id, uint grfdexFetch, winmdroot.System.Ole.FDEX_PROP_FLAGS* pgrfdex)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,uint ,winmdroot.System.Ole.FDEX_PROP_FLAGS* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IDispatchEx*)Unsafe.AsPointer(ref this), id, grfdexFetch, pgrfdex);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetMemberName(IDispatchEx* pThis, int id, winmdroot.Foundation.BSTR* pbstrName)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetMemberName(id, pbstrName);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe winmdroot.Foundation.HRESULT GetMemberName(int id, winmdroot.Foundation.BSTR* pbstrName)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,int ,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IDispatchEx*)Unsafe.AsPointer(ref this), id, pbstrName);
}
/// <inheritdoc cref="GetNextDispID(uint, int, int*)"/>
internal unsafe winmdroot.Foundation.HRESULT GetNextDispID(uint grfdex, int id, out int pid)
{
fixed (int* pidLocal = &pid)
{
winmdroot.Foundation.HRESULT __result = this.GetNextDispID(grfdex, id, pidLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetNextDispID(IDispatchEx* pThis, uint grfdex, int id, int* pid)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetNextDispID(grfdex, id, pid);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe winmdroot.Foundation.HRESULT GetNextDispID(uint grfdex, int id, int* pid)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,uint ,int ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IDispatchEx*)Unsafe.AsPointer(ref this), grfdex, id, pid);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetNameSpaceParent(IDispatchEx* pThis, winmdroot.System.Com.IUnknown** ppunk)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetNameSpaceParent(ppunk);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
public unsafe winmdroot.Foundation.HRESULT GetNameSpaceParent(winmdroot.System.Com.IUnknown** ppunk)
{
return ((delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.System.Com.IUnknown** ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IDispatchEx*)Unsafe.AsPointer(ref this), ppunk);
}
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]<IDispatchEx*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,uint> AddRef_2;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,uint> Release_3;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,uint* ,winmdroot.Foundation.HRESULT> GetTypeInfoCount_4;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetTypeInfo_5;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT> GetIDsOfNames_6;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT> Invoke_7;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.BSTR ,uint ,int* ,winmdroot.Foundation.HRESULT> GetDispID_8;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,uint ,ushort ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,winmdroot.System.Com.IServiceProvider* ,winmdroot.Foundation.HRESULT> InvokeEx_9;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.Foundation.BSTR ,uint ,winmdroot.Foundation.HRESULT> DeleteMemberByName_10;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,winmdroot.Foundation.HRESULT> DeleteMemberByDispID_11;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,uint ,winmdroot.System.Ole.FDEX_PROP_FLAGS* ,winmdroot.Foundation.HRESULT> GetMemberProperties_12;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,int ,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> GetMemberName_13;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,uint ,int ,int* ,winmdroot.Foundation.HRESULT> GetNextDispID_14;
internal delegate *unmanaged [Stdcall]<IDispatchEx*,winmdroot.System.Com.IUnknown** ,winmdroot.Foundation.HRESULT> GetNameSpaceParent_15;
}
public static void PopulateVTable(Vtbl* vtable)
{
vtable->GetDispID_8 = &GetDispID;
vtable->InvokeEx_9 = &InvokeEx;
vtable->DeleteMemberByName_10 = &DeleteMemberByName;
vtable->DeleteMemberByDispID_11 = &DeleteMemberByDispID;
vtable->GetMemberProperties_12 = &GetMemberProperties;
vtable->GetMemberName_13 = &GetMemberName;
vtable->GetNextDispID_14 = &GetNextDispID;
vtable->GetNameSpaceParent_15 = &GetNameSpaceParent;
}
private void** lpVtbl;
/// <summary>The IID guid for this interface.</summary>
/// <value>{a6ef9860-c720-11d0-9337-00a0c90dcaa9}</value>
internal static readonly Guid IID_Guid = new Guid(0xA6EF9860, 0xC720, 0x11D0, 0x93, 0x37, 0x00, 0xA0, 0xC9, 0x0D, 0xCA, 0xA9);
static ref readonly Guid IComIID.Guid {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x60,0x98,0xEF,0xA6,0x20,0xC7,0xD0,0x11,0x93,0x37,0x00,0xA0,0xC9,0x0D,0xCA,0xA9 };
return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
}
}
[Guid("A6EF9860-C720-11D0-9337-00A0C90DCAA9"),InterfaceType(ComInterfaceType.InterfaceIsDual),ComImport()]
internal interface Interface
{
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetDispID(winmdroot.Foundation.BSTR bstrName, uint grfdex, int* pid);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT InvokeEx(int id, uint lcid, ushort wFlags, winmdroot.System.Com.DISPPARAMS* pdp, [Optional] winmdroot.System.Variant.VARIANT* pvarRes, [Optional] winmdroot.System.Com.EXCEPINFO* pei, [Optional] winmdroot.System.Com.IServiceProvider* pspCaller);
[PreserveSig()]
winmdroot.Foundation.HRESULT DeleteMemberByName(winmdroot.Foundation.BSTR bstrName, uint grfdex);
[PreserveSig()]
winmdroot.Foundation.HRESULT DeleteMemberByDispID(int id);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetMemberProperties(int id, uint grfdexFetch, winmdroot.System.Ole.FDEX_PROP_FLAGS* pgrfdex);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetMemberName(int id, winmdroot.Foundation.BSTR* pbstrName);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetNextDispID(uint grfdex, int id, int* pid);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetNameSpaceParent(winmdroot.System.Com.IUnknown** ppunk);
}
}
}
}
|