Global hooks problem
Say suppose i created a application which will set global hook (WH_KEYBOARD_LL type) and imagine that they are working fine :). Now only problem i am facing that i want to know which application triggered the keystrokes. Is it really possible? If yes, then how?
Ex.) say suppose i type few characters in MS Word then my application should come to know that these keystrokes were actually trapped from MS Word application.
Thanks in advance :)
We have a bit of a rule about potentially malicious code - C Board - Announcements in Forum : C++ Programming
If you have a valid need to use this info then please explain it. Otherwise we prefer that you not discuss code that can be used for malicious purposes here
How can you say that it is intended for malicious purpose? It's just a simple question which i believe everybody who has used hooks might be wondering.
I cant argue with that, it's just that we've had many threads over the years that have tried to use this stuff for malicious purposes, so this subject falls under the rule about hacking. If you can give me a valid reason why you are using this stuff then I cant argue. If you cant, then please refrain.