Subclassing & Hooking with Visual Basic

来源:互联网 发布:mysql驱动程序包 编辑:程序博客网 时间:2024/04/30 02:28
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.csdn.net/topmvp - topmvp

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. What kinds of results can you achieve using the power of subclassing and hooking? Here are just a few of the possibilities:

*Determine when a window is being activated or deactivated and respond to this change.
*Display descriptions of menu items as the mouse moves across them.
*Disallow a user to move or resize a window.
*Determine where the mouse cursor is and respond accordingly.
*Determine when the display resolution has been changed.
*Monitor the system for a low system resource condition.
*Modify or disallow keystrokes sent to a window or a control.
*Create an automated testing application.
*Determine when an application is idle.

http://rapidshare.com/files/49850504/0596001185.rar
http://depositfiles.com/files/1535376
原创粉丝点击