public unsafe int QueryInterface(Guid* riid, IUnknown* ppvObject) { IUnknown_vtbl** @this = (IUnknown_vtbl**)reference; IUnknown_vtbl* vtbl = *@this; if (vtbl == null) throw new InvalidComObjectException(); Delegate genericDelegate = Marshal.GetDelegateForFunctionPointer(vtbl->method_0, typeof(delegate_0)); delegate_0 method = (delegate_0)genericDelegate; return method(@this, riid, ppvObject); }
public unsafe int RemoteCreateInstance(Guid* riid, IUnknown* ppvObj) { ITypeInfo_vtbl** @this = (ITypeInfo_vtbl**)reference; ITypeInfo_vtbl* vtbl = *@this; if (vtbl == null) throw new InvalidComObjectException(); Delegate genericDelegate = Marshal.GetDelegateForFunctionPointer(vtbl->method_16, typeof(delegate_16)); delegate_16 method = (delegate_16)genericDelegate; return method(@this, riid, ppvObj); }
public unsafe int RemoteNext(uint celt, IUnknown* rgelt, uint* pceltFetched) { IEnumUnknown_vtbl** @this = (IEnumUnknown_vtbl**)reference; IEnumUnknown_vtbl* vtbl = *@this; if (vtbl == null) throw new InvalidComObjectException(); Delegate genericDelegate = Marshal.GetDelegateForFunctionPointer(vtbl->method_3, typeof(delegate_3)); delegate_3 method = (delegate_3)genericDelegate; return method(@this, celt, rgelt, pceltFetched); }
public unsafe int LoadObject(char* pstrName, uint dwHint, IUnknown pUnkObject, IErrorLog pErrLog) { IPropertyBag2_vtbl** @this = (IPropertyBag2_vtbl**)reference; IPropertyBag2_vtbl* vtbl = *@this; if (vtbl == null) throw new InvalidComObjectException(); Delegate genericDelegate = Marshal.GetDelegateForFunctionPointer(vtbl->method_7, typeof(delegate_7)); delegate_7 method = (delegate_7)genericDelegate; return method(@this, pstrName, dwHint, pUnkObject, pErrLog); }
public static unsafe extern int CoCreateInstance(Guid* rclsid, IUnknown pUnkOuter, uint dwClsContext, Guid* riid, void** ppv);