Subclassing And Hooking With Visual Basic (with 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.


If you’re going to reengineer your entire organization around ad hoc, short-term projects, you’d better have people who know how to run projects well. And when, according to Standish Group, only 28 percent of IT projects meet “basic” standards of success, we’ve clearly got a long way to go.

(7 votes, average: 4.43 out of 5)









