Ejemplo n.º 1
0
 public static int GetPeerProcessID(ref EndpointCore ep)
 {
     if (ep.peerStateValid)
     {
         EndpointCore *peer = (EndpointCore *)SharedHeapService.GetData(ep.cachedPeer);
         return(peer->cachedOwnerProcessId);
     }
     else
     {
         return(GetPeerProcessIDABI(ref ep));
     }
 }
Ejemplo n.º 2
0
 public static bool PeerClosed(ref EndpointCore ep)
 {
     if (ep.cachedPeer != null)
     {
         EndpointCore *peer = (EndpointCore *)SharedHeapService.GetData(ep.cachedPeer);
         return(peer->cachedClosed);
     }
     else
     {
         return(PeerClosedABI(ref ep));
     }
 }