Chapter 15. WH_MSGFILTER

This chapter will discuss the WH_MSGFILTER hook and will include a thread-specific example to demonstrate its setup and use. The WH_MSGFILTER hook is a special type of hook that intercepts only a specific subset of sent messages. This hook has a very close cousin, the WH_SYSMSGFILTER hook. The WH_SYSMSGFILTER hook intercepts the same type of messages but at a system-wide level only. Chapter 16 will discuss the WH_SYSMSGFILTER hook and compare and contrast it with the WH_MSGFILTER hook.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.