Пример #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 Write(uint cProperties, PROPBAG2* pPropBag, VARIANT* pvarValue)
 {
     IPropertyBag2_vtbl** @this = (IPropertyBag2_vtbl**)reference;
     IPropertyBag2_vtbl* vtbl = *@this;
     if (vtbl == null)
         throw new InvalidComObjectException();
     Delegate genericDelegate = Marshal.GetDelegateForFunctionPointer(vtbl->method_4, typeof(delegate_4));
     delegate_4 method = (delegate_4)genericDelegate;
     return method(@this, cProperties, pPropBag, pvarValue);
 }
Пример #3
0
 public unsafe int GetPropertyInfo(uint iProperty, uint cProperties, PROPBAG2* pPropBag, uint* pcProperties)
 {
     IPropertyBag2_vtbl** @this = (IPropertyBag2_vtbl**)reference;
     IPropertyBag2_vtbl* vtbl = *@this;
     if (vtbl == null)
         throw new InvalidComObjectException();
     Delegate genericDelegate = Marshal.GetDelegateForFunctionPointer(vtbl->method_6, typeof(delegate_6));
     delegate_6 method = (delegate_6)genericDelegate;
     return method(@this, iProperty, cProperties, pPropBag, pcProperties);
 }