Example #1
0
        public static void MarshallPointer(ref EndpointCore endpoint, byte *basep, byte **target, SystemType type, byte *parent, int offset)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                epimp->MarshallPointer(basep, target, type, parent, offset);
            }
        }
Example #2
0
        public static PrincipalHandle GetOwnerPrincipalHandle(ref EndpointCore endpoint)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                return(epimp->OwnerPrincipalHandle);
            }
        }
Example #3
0
        public static int GetPeerProcessIDABI(ref EndpointCore endpoint)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                return(epimp->PeerProcessId);
            }
        }
Example #4
0
        public static void EnableDelegation(ref EndpointCore endpoint, bool allowMediation)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                epimp->EnableDelegation(allowMediation);
            }
        }
Example #5
0
        public static void NotifyPeer(ref EndpointCore endpoint)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                epimp->NotifyPeer();
            }
        }
Example #6
0
        public static void TransferBlockOwnership(Allocation *ptr, ref EndpointCore target)
        {
            fixed(EndpointCore *ep = &target)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                EndpointCoreImplementation.TransferBlockOwnership((SharedHeap.Allocation *)ptr, ref *epimp);
            }
        }
Example #7
0
        public static void Close(ref EndpointCore endpoint)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                epimp->Close();
            }
        }
Example #8
0
        public static bool PeerClosedABI(ref EndpointCore endpoint)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                return(epimp->PeerClosed());
            }
        }
Example #9
0
        public static bool Dispose(ref EndpointCore endpoint)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                return(epimp->Dispose());
            }
        }
Example #10
0
        public static Allocation * /*EndpointCore* opt(ExHeap) */ GetPeerABI(ref EndpointCore endpoint,
                                                                             out bool marshall)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                return((Allocation *)epimp->Peer(out marshall));
            }
        }
Example #11
0
        public static int GetOwnerProcessID(ref EndpointCore endpoint)
        {
            // kernel methods always access the shadowed copy in deliveryImpl
            // not the user accessable copy in EndpointCore
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                return(epimp->ProcessId);
            }
        }
Example #12
0
        /// <summary>
        /// The event to wait for messages on this endpoint. Used by Select.
        /// </summary>
        public static SyncHandle GetWaitHandle(ref EndpointCore endpoint)
        {
            // kernel methods always access the shadowed copy in deliveryImpl
            // not the user accessable copy in EndpointCore
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                return(epimp->GetWaitHandle());
            }
        }
Example #13
0
        public static void TransferContentOwnership(
            ref EndpointCore transferee,
            ref EndpointCore target)
        {
            fixed(EndpointCore *ep1 = &transferee, ep2 = &target)
            {
                EndpointCoreImplementation *epimp1 = (EndpointCoreImplementation *)ep1;
                EndpointCoreImplementation *epimp2 = (EndpointCoreImplementation *)ep2;

                EndpointCoreImplementation.TransferContentOwnership(ref *epimp1, ref *epimp2);
            }
        }
Example #14
0
        unsafe public static void MarshallMessage(ref EndpointCore endpoint,
                                                  byte *basep,
                                                  byte *source,
                                                  int *tagAddress,
                                                  int msgSize)
        {
            fixed(EndpointCore *ep = &endpoint)
            {
                EndpointCoreImplementation *epimp = (EndpointCoreImplementation *)ep;

                epimp->BeginUpdate(basep, source, tagAddress, msgSize);
            }
        }