|
Because there is no specific procedure, let me briefly mention it!
The windows monitored by the hook can be created by other processes. When a message arrives, it must be processed before the target window handler.
Whenever a specific message is sent, the hook program captures the message before it reaches the destination window, that is, the hook function gets control first. At this time, the hook function can process (change) the message, or continue to deliver the message without processing, and can also force the message to end.
WH_CBT Hook
Before the following events, the system will call the WH_CBT Hook subroutine, these events include:
1. Activate, create, destroy, minimize, maximize, move, resize and other window events;
2. Complete system instructions;
3. Move the mouse and keyboard events from the system message queue;
4. Set the input focus event;
5. Synchronize system message queue events. |
|