hello there!

my lowlevel keyhook is working except for one thing: the .flags value of the kbdllhookstruct given by the lParam pointer always is zero!

the struct is :
KBDLLHOOKSTRUCT struct
vkCode dd ?
scanCode dd ?
flags dd ?
.....
KB.. ends


and later im doing:

assume edx: ptr kbdllhookstruct
.if .vkCode == VK_B
mov ecx,.flags
cmp ecx,0
je DEATH ;-> it always jumps to death
.endif
assume edx: nothing



Please help me, im stuck here for 2 days now, and google finds only c++ sites for which the flags value always is nonzero (i tried :)
Posted on 2003-01-30 14:14:56 by LordHelmchen
If i am not wrong,



assume edx: ptr kbdllhookstruct
;.if [edx].vkCode == VK_B
cmp DWORD ptr [edx].vkCode,WM_B
jne OUT
mov ecx,[edx].flags
cmp ecx,0
je DEATH ;-> it always jumps to death
;.endif
OUT:
assume edx: nothing
Posted on 2003-01-31 07:36:33 by roticv
thanks rolicv for your answer


nevermind this message :)
Posted on 2003-01-31 14:57:20 by LordHelmchen