F
ff_ff
Unregistered / Unconfirmed
GUEST, unregistred user!
1.<br>谢谢大家,还有几个小问题<br>hHk:=SetWindowsHookEx(13,@keyHookProc,HINSTANCE,0);<br>这里的13是自定义的,<br>只要和这里<br> { SetWindowsHook() codes }<br> {$EXTERNALSYM WH_MIN}<br> WH_MIN = -1;<br> {$EXTERNALSYM WH_MSGFILTER}<br> WH_MSGFILTER = -1;<br> {$EXTERNALSYM WH_JOURNALRECORD}<br> WH_JOURNALRECORD = 0;<br> {$EXTERNALSYM WH_JOURNALPLAYBACK}<br> WH_JOURNALPLAYBACK = 1;<br> {$EXTERNALSYM WH_KEYBOARD}<br> WH_KEYBOARD = 2;<br> {$EXTERNALSYM WH_GETMESSAGE}<br> WH_GETMESSAGE = 3;<br> {$EXTERNALSYM WH_CALLWNDPROC}<br> WH_CALLWNDPROC = 4;<br> {$EXTERNALSYM WH_CBT}<br> WH_CBT = 5;<br> {$EXTERNALSYM WH_SYSMSGFILTER}<br> WH_SYSMSGFILTER = 6;<br> {$EXTERNALSYM WH_MOUSE}<br> WH_MOUSE = 7;<br> {$EXTERNALSYM WH_HARDWARE}<br> WH_HARDWARE = 8;<br> {$EXTERNALSYM WH_DEBUG}<br> WH_DEBUG = 9;<br> {$EXTERNALSYM WH_SHELL}<br> WH_SHELL = 10;<br> {$EXTERNALSYM WH_FOREGROUNDIDLE}<br> WH_FOREGROUNDIDLE = 11;<br> {$EXTERNALSYM WH_CALLWNDPROCRET}<br> WH_CALLWNDPROCRET = 12;<br> {$EXTERNALSYM WH_MAX}<br> WH_MAX = 12;<br> {$EXTERNALSYM WH_MINHOOK}<br> WH_MINHOOK = WH_MIN;<br> {$EXTERNALSYM WH_MAXHOOK}<br> WH_MAXHOOK = WH_MAX;<br>不一样就行吗?<br> WH_CALLWNDPROCRET = 12;<br> WH_MAX = 12;这两个为什么相同呢?<br>2.type<br> PKBDDLLHOOKSTRUCT = ^KBDDLLHOOKSTRUCT;<br> KBDDLLHOOKSTRUCT=record<br> vkCode: DWORD;<br> ScanCode: DWORD;<br> Flags: DWORD;<br> Time: DWORD;<br> dwExtraInfo: DWORD;<br> end;<br>这个结构体Delphi中没有自带,每次自已写,是不是很麻烦,有没有好办法呢?<br>楼上的兄弟别急,一会一并给分,如果不够,可以再加