Results 1 to 4 of 4

Thread: For API Gurus!! System-Wide hooking!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    95

    Question

    How do I create a System-Wide hook? SetWindowsHookEx will only let me create it locally (By locally I mean not system wide). I think i need a DLL for this but can someone give me an example? it can be in C or C++ or VB or whatever language.

    Thanks for reading!

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    If your hook is WH_MOUSE or WH_KEYBOARD or WH_CALLWNDPROC then you can replace it with WH_JOURNALRECORD which is one of the only 2 system-wide hooks which don't need a DLL.

    Whew, long sentence.
    Hope it's decipherable.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    95
    Would my callback still process the events?? say if I made a key logger, would it log the keys that i type in a different program as well?

  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Yes, it can be system-wide with no DLL and it can replace WH_KEYBOARD. Read the MSDN help, it's all there.

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