?
Solved

WH_KEYBOARD vs. WH_KEYBOARD_LL

Posted on 2006-03-29
2
Medium Priority
?
5,906 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.
0
Comment
Question by:InteractiveMind
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 1000 total points
ID: 16321409
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.
0
 
LVL 25

Author Comment

by:InteractiveMind
ID: 16321421
Much appreciated, AlexFM.  :-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question