Ejemplo n.º 1
0
 private static unsafe extern void NdrMesTypeFree2(
     IntPtr handle,
     MIDL_TYPE_PICKLING_INFO *pPickingInfo,
     ref MIDL_STUB_DESC pStubDesc,
     IntPtr pFormatString,
     ref IntPtr pObject
     );
Ejemplo n.º 2
0
 private unsafe extern static void NdrMesTypeEncode2(
     IntPtr Handle,
     MIDL_TYPE_PICKLING_INFO *pPicklingInfo,
     ref MIDL_STUB_DESC pStubDesc,
     IntPtr pFormatString,
     ref void *pObject
     );
Ejemplo n.º 3
0
        public unsafe PickleMarshaller(ReadOnlyMemory <byte> typeFormatString, int formatOffset)
        {
            this.pTypeFormatString = typeFormatString.Pin();
            this.pRpcInterface     = GCHandle.Alloc(RpcClientInterface, GCHandleType.Pinned);

            this.formatOffset = formatOffset;

            this.stubDesc = new MIDL_STUB_DESC
            {
                RpcInterfaceInformation = this.pRpcInterface.AddrOfPinnedObject(),
                PfnAllocate             = Marshal.GetFunctionPointerForDelegate(FnAllocator),
                PfnFree      = Marshal.GetFunctionPointerForDelegate(FnFree),
                PFormatTypes = (IntPtr)this.pTypeFormatString.Pointer,
                FCheckBounds = 1,
                Version      = 0x60000,
                MIDLVersion  = 0x8000000,
                MFlags       = 0x1
            };
        }
Ejemplo n.º 4
0
        public unsafe PickleMarshaller(ReadOnlyMemory <byte> typeFormatString, int formatOffset)
        {
            pTypeFormatString = typeFormatString.Pin();
            pRpcInterface     = GCHandle.Alloc(_RPC_CLIENT_INTERFACE, GCHandleType.Pinned);

            this.formatOffset = formatOffset;

            stubDesc = new MIDL_STUB_DESC
            {
                RpcInterfaceInformation = pRpcInterface.AddrOfPinnedObject(),
                pfnAllocate             = Marshal.GetFunctionPointerForDelegate(fnAllocator),
                pfnFree      = Marshal.GetFunctionPointerForDelegate(fnFree),
                pFormatTypes = (IntPtr)pTypeFormatString.Pointer,
                fCheckBounds = 1,
                Version      = 0x60000,
                MIDLVersion  = 0x8000000,
                mFlags       = 0x1
            };
        }