We help IT Professionals succeed at work.

WH_KEYBOARD vs. WH_KEYBOARD_LL

InteractiveMind
on
Medium Priority
6,244 Views
Last Modified: 2008-01-09
I read that WH_KEYBOARD_LL is for "Low Level" keyboard hooks.
Does this mean that if you wanted to hook _all_ keys recieved from the user, then you'd need to use this? Whereas WH_KEYBOARD is just for a specific application?

Or, can WH_KEYBOARD be used to hook the keyboard, as to recieve _all_ keys pressed?

Thanks.
Comment
Watch Question

Commented:
Both hooks have the same low level and allow to set local or global keyboard hook. WH_KEYBOARD_LL is more convenient for using because it's callback function can be in the same exe project where hook is created. WH_KEYBOARD_LL can be used in WinNT or later. If you don't need Win95/98, use WH_KEYBOARD_LL hook.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Top Expert 2006

Author

Commented:
Much appreciated, AlexFM.  :-)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.