Thread: Global hooks problem

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    225

    Global hooks problem

    Hello,

    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

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    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

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    225
    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.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Global Class problem
    By like_no_other in forum C++ Programming
    Replies: 4
    Last Post: 05-10-2009, 11:09 AM
  2. global keyboard hooks
    By Fender Bender in forum Windows Programming
    Replies: 6
    Last Post: 12-29-2005, 05:36 PM
  3. Global Variables, include files and classes
    By sharpstones in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2005, 10:06 AM
  4. defining and using a global class
    By cjschw in forum C++ Programming
    Replies: 4
    Last Post: 03-05-2004, 09:51 PM
  5. Replies: 4
    Last Post: 10-17-2002, 10:09 PM