mfc HOOK编程

来源:互联网 发布:mac os 登录界面 其他 编辑:程序博客网 时间:2024/06/09 18:38

The role of HOOK is shielding  all kinds of the events and messages.

the main keys:

1. HHOOK hkHandle

2.SetWindowsHookEx(msg,Proc,NULL,GetCurrentThreadID())    //the Parameters responding to the current Process

3.Setting the Proc function   //it means we need to sheild the msgs or events if the proc return 1

4.we must remember UnhookWindowsHookex(handle) ,or the current proc will not get the messages or events

原创粉丝点击