|
-
July 16th, 1999, 12:48 PM
#2
Re: Keyboard Hook only works the first time
Hi Yaakov
Your problem is that your hook procedure KeyBoardfunc must return 0 not 1.
If you want your code to be corect you must use next source:
LRESULT CALLBACK KeyboardProc (int nCode, WPARAM wParam, LPARAM lParam )
{
MessageBeep(-1);
MessageBeep(-1);
MessageBeep(-1);
return CallNextHookEx(hKBHook, code, wParam, lParam);
}
Martin
e-mail: [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|