Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
If you want to see if any hooks have been set via SetWindowsHook() what's the best way to do it?

From Keyboard Spy: implementation and counter measures[^] there is a useful routine, but is it optimal?

It has the EnumModules() routine, but I was wondering if anyone has come up with a more direct method? What qualifies as an authorized module - only those you know you have loaded into the process space?
Posted
Updated 19-Jan-10 4:22am
v2

1 solution

You can install a debug hook with WH_DEBUG. The debug hook routine is called before any other hook routine is called with the information about the hook to be called.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900