F
ff_ff
Unregistered / Unconfirmed
GUEST, unregistred user!
type
PKBDLLHOOKSTRUCT = ^KBDLLHOOKSTRUCT;
KBDLLHOOKSTRUCT = record
vkCode: DWORD;
ScanCode: DWORD;
Flags: DWORD;
Time: DWORD;
dwExtraInfo: DWORD;
end;
var
p: PKBDLLHOOKSTRUCT;
p:=PKBDLLHOOKSTRUCT(Lparam)
其中Lparam是键盘钩子过程函数的参数
function keyHookProc(nCode: Integer;WParam: WPARAM;LParam: LPARAM): LRESULT;stdcall;
问:
1.Lparam中Longint型的,PKBDLLHOOKSTRUCT是个结构体指针,怎么能强制转?
2.钩子过程函数的参数中LParam是做什么用的?
3.Windows调用键盘钩子过程,把消息传给Lparam参数怎么再用KBDLLHOOKSTRUCT保存在vkCode: DWORD;域中?
4.hHk := SetWindowsHookEx(13,@keyHookProc,HInstance,0);idHook参数为了13这是安装的什么钩子.,怎么查到的
PKBDLLHOOKSTRUCT = ^KBDLLHOOKSTRUCT;
KBDLLHOOKSTRUCT = record
vkCode: DWORD;
ScanCode: DWORD;
Flags: DWORD;
Time: DWORD;
dwExtraInfo: DWORD;
end;
var
p: PKBDLLHOOKSTRUCT;
p:=PKBDLLHOOKSTRUCT(Lparam)
其中Lparam是键盘钩子过程函数的参数
function keyHookProc(nCode: Integer;WParam: WPARAM;LParam: LPARAM): LRESULT;stdcall;
问:
1.Lparam中Longint型的,PKBDLLHOOKSTRUCT是个结构体指针,怎么能强制转?
2.钩子过程函数的参数中LParam是做什么用的?
3.Windows调用键盘钩子过程,把消息传给Lparam参数怎么再用KBDLLHOOKSTRUCT保存在vkCode: DWORD;域中?
4.hHk := SetWindowsHookEx(13,@keyHookProc,HInstance,0);idHook参数为了13这是安装的什么钩子.,怎么查到的