public Process Get(PID pid) { if (pid.Address == Address && pid.Id.StartsWith("$client/") & pid.Id.Length > 44) // 44 is the length with the GUID { return(new ClientProcess(pid)); } return(_originalInstance.Get(pid)); }
public Process Get(PID pid) { if ((pid.Address != NoHost && pid.Address != Address) || (BaseId != null && pid.Address == Address & !pid.Id.StartsWith(BaseId))) { return(new ClientHostProcess(pid)); } return(_originalInstance.Get(pid)); }