Results 1 to 2 of 2

Thread: Hook Procedure for Keyboard & Mouse

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    76

    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.

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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
  •  



Click Here to Expand Forum to Full Width