示例#1
0
        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);
        }
示例#2
0
 private NktHook NktHookFor(Hook aHook)
 {
     return(_manager.Hooks().GetById(aHook.Id));
 }