J
jianyou_chen
Unregistered / Unconfirmed
GUEST, unregistred user!
下面是程序的一部分,其中starthook创建了一个hook procedure,就是GetMsgProc了,请问这样的hook procedure有什么用,这两个程序都放在DLL里,现在刚学hook优点不知所以,还请指点.<br>function GetMsgProc(code: integer; removal: integer; msg: Pointer): Integer; stdcall;<br>begin<br> Result:=0;<br>end;<br><br>Var HookHandle: THandle;<br><br>procedure StartHook; stdcall;<br>begin<br> HookHandle:=SetWindowsHookEx(WH_GETMESSAGE, @GetMsgProc, HInstance, 0);<br>end;