Esempio n. 1
0
        // Fields up to now present in win2000 release.

        public MIDL_STUB_DESC(RpcHandle handle, IntPtr interfaceInfo, Byte[] formatTypes, bool serverSide)
        {
            RpcInterfaceInformation = interfaceInfo;
            pfnAllocate             = RpcRuntime.AllocPtr.Handle;
            pfnFree                     = RpcRuntime.FreePtr.Handle;
            pAutoBindHandle             = serverSide ? IntPtr.Zero : handle.Pin(new IntPtr());
            apfnNdrRundownRoutines      = new IntPtr();
            aGenericBindingRoutinePairs = new IntPtr();
            apfnExprEval                = new IntPtr();
            aXmitQuintuple              = new IntPtr();
            pFormatTypes                = handle.Pin(formatTypes);
            fCheckBounds                = 1;
            Version                     = 0x50002u;
            pMallocFreeStruct           = new IntPtr();
            MIDLVersion                 = 0x70001f4;
            CommFaultOffsets            = serverSide
                                   ? IntPtr.Zero
                                   : handle.Pin(new COMM_FAULT_OFFSETS()
            {
                CommOffset = -1, FaultOffset = -1
            });
            aUserMarshalQuadruple = new IntPtr();
            NotifyRoutineTable    = new IntPtr();
            mFlags          = new IntPtr(0x00000001);
            CsRoutineTables = new IntPtr();
            ProxyServerInfo = new IntPtr();
            pExprInfo       = new IntPtr();
        }
Esempio n. 2
0
 protected bool Equals(RpcHandle other)
 {
     return(Handle.Equals(other.Handle));
 }