深入浅出HOOKS(之壹)[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 jaccorporation 的 blog

宋体; mso-ascii-font-family: 'times new roman'; mso-hansi-font-family: 'times new roman'; mso-bidi-font-family: 宋体">,如果想停止所有mosue键盘的动作,而放(执行)巨集,那就使用journalplayback hookhook呢,可以是整个系统为范围(remote hook),即其他 process的动作您也可以拦截,也可以是localhook,它的拦截范围只有process本身。remote hookhook function要在.dll之中,local hook则在.bas中。

vb如何设定hook呢?使用setwindowshookex()

 

declare function setwindowshookex lib "user32" alias "setwindowshookexa"(byval idhook as long, byval lpfn as long, byval hmod as long, byval dwthreadid as long) as long

 

 

idhook代表是何种hook,有以下几种

public const wh_callwndproc = 4

public const wh_callwndprocret = 12

public const wh_cbt = 5

本文关键:hooks
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top