The Hook


Description:
This DLL provides similar functionality to my Simple Hook example. It however, attempts to embed some logic in the DLL so you don't have to sub class the VB project to see the message stream and decode the messages.

The zip file contains the DLL, as a sample VB 6 project, and the VC++ source for the DLL.

11/16/1999: Added the ability to track the mouse cursor. TheHook.dll now also converts WM_NC* mouse messages to their WM_* counterparts.

1/9/2000: Added the Visual C++ Source for the DLL to the archive.

2/13/2000: Corrected a small bug in the DLL that wouldn't allow the keyboard hook to be used without the mouse hook.

6/16/2000: Also, check out the SysHook control under Useful Files/Controls. It provides an easy to use mechanism for hooking the keyboard and mouse.

8/29/2003: Recompiled TheHook to squash any virus warnings.

10/3/2005: This has been removed since other developers insisted on using it for evil purposes.