全
全文检索
Unregistered / Unconfirmed
GUEST, unregistred user!
WH_DEBUG 钩子<br><br>我没办法让它执行CallNextHooKex<br><br>一但执行CallNextHooKex就所有的程序都会关闭<br><br>谁帮我看看有没有写错<br><br>function hookproc(code:integer; wparam:wparam; lparam:lparam):lresult;stdcall;<br> BEGIN<br> result:=callnexthookex(hookhandle,code,wparam,lparam);<br> end;<br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> hookhandle:=setwindowshookex(WH_DEBUG,@hookproc,hinstance,0);<br>end;<br><br>如果把CallNextHooKex注释掉就没事 <br><br>也就是可以执行一次,不可以传递