mfc HOOK編程

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章