Stephen Teilhet | "Subclassing And Hooking With Visual Basic"
O'Reilly | May 2001 | ISBN: 0596001185 | English | 704 pages | PDF | 4 MB (book + source code)
Subclassing & Hooking with Visual Basic offers developers a unique way to customize Windows behavior. Windows is a message-based system. Every action you request creates one or more messages to carry out the action. These messages are passed between objects and carry with them information that gives the recipient more detail on how to interpret and act upon the message. With Subclassing and the Windows hooking mechanism ("hooks"), you can manipulate, modify, or even discard messages bound for other objects within the operating system, in the process changing the way the system behaves.
This book is geared towards the Visual Basic developer who wants a better understanding of subclassing and hooking as well as how to incorporate these techniques into their projects. You need not be an advanced Visual Basic developer to learn how to effectively use subclassing and hooking. Although, many of the Win32 API function will need to be utilized in order to write subclassing and hooking applications and, therefore, a good knowledge of the Win32 API functions and how they are used within Visual Basic is necessary.
In understanding subclassing and hooks, you must delve deep into the internals of the Window’s operating system. This deeper understanding of Windows allows you not only to gain an understanding of subclassing and hooking, but also to learn more about the messaging system, which is the heart of the Windows operating system. The beginning of this book lays a solid foundation that will bring the beginning or intermediate developer up to speed on these topics.
TABLE OF CONTENT:
Chapter 01 - Introduction
Chapter 02 - Windows System-Specific Information
Chapter 03 - The Basics of Subclassing and Hooks
Chapter 04 - Subclassing
Chapter 05 - Subclassing the Windows Common Dialog Boxes
Chapter 06 - ActiveX Controls and Subclassing
Chapter 07 - Superclassing
Chapter 08 - Debugging Techniques for Subclassing
Chapter 09 - WH_CALLWNDPROC
Chapter 10 - WH_CALLWNDPROCRET
Chapter 11 - WH_GETMESSAGE
Chapter 12 - WH_KEYBOARD and WH_KEYBOARD_LL
Chapter 13 - WH_MOUSE and WH_MOUSE_LL
Chapter 14 - WH_FOREGROUNDIDLE
Chapter 15 - WH_MSGFILTER
Chapter 16 - WH_SYSMSGFILTER
Chapter 17 - WH_SHELL
Chapter 18 - WH_CBT
Chapter 19 - WH_JOURNALRECORD
Chapter 20 - WH_JOURNALPLAYBACK
Chapter 21 - WH_DEBUG
Chapter 22 - Subclassing .NET WinForms
Chapter 23 - Implementing Hooks in VB.NET