Detecting Keyboard Hooks

This is a discussion on Detecting Keyboard Hooks within the Windows Programming forums, part of the Platform Specific Boards category; Does anybody know of a way to detect global keyboard hooks? I want to be able to detect keyboard hooks ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    16

    Cool Detecting Keyboard Hooks

    Does anybody know of a way to detect global keyboard hooks? I want to be able to detect keyboard hooks and possibly remove them from the system.

    Basically, a way to stop key loggers from stealing passwords. At the very least, this could be used to inform the user that the keyboard is being monitored. At best, it could identify the hooks and remove them. Also, being able to identify the process that loaded the hook would be very helpful.

    If you have any ideas on the subject, or a link to a site with info, please respond.

    Thank you,

    Kino

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    i dont know much about keyboard hooks, but maybe if you research on how to implement one, you'll find out how to detect it as well. ie, if you know how it works, you'll know what to look for when detecting it.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    The way I would try detect a hook is with.....

    .....wait for it.....

    .....another hook!!!!!!!!!!!!!!!

    There is a debug hook (see SetWindowsHook with the WH_DEBUG param) that is called before any other hook...the callback you specify recieves the types of hook as well as the params sent....

    See msdn for info

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Detecting keyboard and mouse in linux
    By sameer.nalwade in forum C Programming
    Replies: 3
    Last Post: 11-22-2008, 03:24 AM
  2. global keyboard hooks
    By Fender Bender in forum Windows Programming
    Replies: 6
    Last Post: 12-29-2005, 04:36 PM
  3. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09:00 AM
  4. Do I need to use Keyboard Hooks to solve my problem?
    By BenPage in forum C++ Programming
    Replies: 3
    Last Post: 07-16-2005, 10:10 AM
  5. Keyboard Hook (C++)
    By jmd15 in forum Windows Programming
    Replies: 6
    Last Post: 03-10-2005, 08:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21