예제 #1
0
파일: IMarshal.cs 프로젝트: wjk/CsWinRT
 private static int Do_Abi_GetUnmarshalClass_0(IntPtr thisPtr, ref Guid riid, IntPtr pv, global::Com.MSHCTX dwDestContext, IntPtr pvDestContext, global::Com.MSHLFLAGS mshlFlags, out Guid pCid)
 {
     pCid = default;
     try
     {
         ComWrappersSupport.FindObject <global::Com.IMarshal>(thisPtr).GetUnmarshalClass(ref riid, pv, dwDestContext, pvDestContext, mshlFlags, out pCid);
     }
     catch (Exception ex)
     {
         return(Marshal.GetHRForException(ex));
     }
     return(0);
 }
예제 #2
0
파일: IMarshal.cs 프로젝트: wjk/CsWinRT
 private static int Do_Abi_GetMarshalSizeMax_1(IntPtr thisPtr, ref Guid riid, IntPtr pv, global::Com.MSHCTX dwDestContext, IntPtr pvDestContext, global::Com.MSHLFLAGS mshlflags, out uint pSize)
 {
     pSize = default;
     try
     {
         ComWrappersSupport.FindObject <global::Com.IMarshal>(thisPtr).GetMarshalSizeMax(ref riid, pv, dwDestContext, pvDestContext, mshlflags, out pSize);
     }
     catch (Exception ex)
     {
         return(Marshal.GetHRForException(ex));
     }
     return(0);
 }
예제 #3
0
파일: IMarshal.cs 프로젝트: wjk/CsWinRT
 private static int Do_Abi_MarshalInterface_2(IntPtr thisPtr, IntPtr pStm, ref Guid riid, IntPtr pv, global::Com.MSHCTX dwDestContext, IntPtr pvDestContext, global::Com.MSHLFLAGS mshlflags)
 {
     try
     {
         ComWrappersSupport.FindObject <global::Com.IMarshal>(thisPtr).MarshalInterface(pStm, ref riid, pv, dwDestContext, pvDestContext, mshlflags);
     }
     catch (Exception ex)
     {
         return(Marshal.GetHRForException(ex));
     }
     return(0);
 }