示例#1
0
 public unsafe int Read(uint cProperties, PROPBAG2* pPropBag, IErrorLog pErrLog, VARIANT* pvarValue, int* phrError)
 {
     IPropertyBag2_vtbl** @this = (IPropertyBag2_vtbl**)reference;
     IPropertyBag2_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, cProperties, pPropBag, pErrLog, pvarValue, phrError);
 }
示例#2
0
 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);
 }