|
-
Sep 1st, 2000, 03:55 PM
#1
Thread Starter
Lively Member
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!
-
Sep 1st, 2000, 04:00 PM
#2
Guru
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.
-
Sep 1st, 2000, 04:03 PM
#3
Thread Starter
Lively Member
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?
-
Sep 1st, 2000, 04:21 PM
#4
Guru
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|