public bool UnHook() { if (process == null) { return(false); } bool unhooked = false; foreach (NktHook hook in spyMgr.Hooks()) { hook.Unhook(false); if (!unhooked) { Console.WriteLine("Unhooking " + process.Name); } unhooked = true; } return(unhooked); }
private NktHook NktHookFor(Hook aHook) { return(_manager.Hooks().GetById(aHook.Id)); }