|
-
Feb 12th, 2003, 08:32 AM
#1
Thread Starter
Lively Member
Hook Procedure for Keyboard & Mouse
I am developing a Visual C (6.0) DLL, (pure C without MFC) to be called by a Visual Basic main program for keyboard and mouse activities tracking to generate random number.
Can I use SetWindowsHookEx to achieve this?
Is there any complete source samples for this case?
Anyone can help explain the THREAD/INSTANCE and how it is structured in my case?
Thanks a lot.
-
Feb 12th, 2003, 09:34 AM
#2
Frenzied Member
Yes, SetWindowsHookEx is the way to go... I posted an example here:
http://www.vbforums.com/showthread.p...tWindowsHookEx
that disables the keyboard but if you take a close look you'll see that's easy to adjust to your requirements.. if you need more help let me know
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|