How to remove a Hook ?

Feb 3, 2012 at 9:09 AM
Edited Feb 3, 2012 at 9:10 AM

Hi,

I am using EasyHook to hook target processes from a main program.

But Sometimes my main program is stopped or updated and I would like to:

- remove hooks from target processes before rehooking target processes.

But I didn't find how can I do that.

Maybe is it possible to uninstall all hooks when my main program is stopped but I didn't find how to do that.

Thank

Coordinator
Mar 12, 2012 at 9:54 AM

I use a "Ping" method on my remoting interface within the hooked target. If the "Ping" fails then I assume that the host is no longer available and remove the hooks. I usually pass the hooked process ID within the Ping for informational purposes.

Cheers,

Justin