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)); } }
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)); } }