コード例 #1
0
ファイル: Common.cs プロジェクト: tablesmit/NRegFreeCom
 public unsafe int GetTypeComp(ITypeComp* ppTComp)
 {
     ITypeLib_vtbl** @this = (ITypeLib_vtbl**)reference;
     ITypeLib_vtbl* vtbl = *@this;
     if (vtbl == null)
         throw new InvalidComObjectException();
     Delegate genericDelegate = Marshal.GetDelegateForFunctionPointer(vtbl->method_8, typeof(delegate_8));
     delegate_8 method = (delegate_8)genericDelegate;
     return method(@this, ppTComp);
 }
コード例 #2
0
ファイル: Common.cs プロジェクト: tablesmit/NRegFreeCom
 public unsafe int RemoteBind(char* szName, uint lHashVal, ushort wFlags, ITypeInfo* ppTInfo, DESCKIND* pDescKind, FUNCDESC** ppFuncDesc, VARDESC** ppVarDesc, ITypeComp* ppTypeComp, CLEANLOCALSTORAGE* pDummy)
 {
     ITypeComp_vtbl** @this = (ITypeComp_vtbl**)reference;
     ITypeComp_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, szName, lHashVal, wFlags, ppTInfo, pDescKind, ppFuncDesc, ppVarDesc, ppTypeComp, pDummy);
 }