SAMPLE: HookAll.exe Demos WH_CALLWNDPROC & WH_GETMESSAGE Hooks

ID: Q76588

The information in this article applies to:

SUMMARY

HookAll.exe is a sample program in the Software Library that demonstrates the use of WH_GETMESSAGE and WH_CALLWNDPROC hooks. The sample contains the code for a dynamic-link library (DLL) with functions to set and remove the hooks, as well as the hook filter functions. The filter functions use OutputDebugString to display a message when they receive a WM_LBUTTONDOWN message. The sample also contains code for an application that tests the DLL.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ HookAll.exe (size: 21473 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

Additional query words: Keywords : kbfile kbsample kb16bitonly kbHook kbGrpUser kbWinOS310 kbWinOS300

Last Reviewed: December 10, 1998