use apihook hook SetWindowsHookEx,check first param for hook type.
To kingzai() : 你的方法可以, 但我只能在入口出进行判断,我的意思是我没有办法控制这些Hook Procedure,或者说我没有办法任意的暂停或者继续钩子子程序。如果可能,应该怎么作到呢?
maybe you can try this way: when hook SetWindowsHookEx,you can get the second param point,HOOKPROC lpfn. modify this point to another,this hook procedure will not continue.you can push and pop this point.
你的方法可以, 但我只能在入口出进行判断,我的意思是我没有办法控制这些Hook Procedure,或者说我没有办法任意的暂停或者继续钩子子程序。如果可能,应该怎么作到呢?
when hook SetWindowsHookEx,you can get the second param point,HOOKPROC lpfn.
modify this point to another,this hook procedure will not continue.you can push and pop this point.