Posted on 2006-03-29
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?

Question by:InteractiveMind
    LVL 48

    Accepted Solution

    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.
    LVL 25

    Author Comment

    Much appreciated, AlexFM.  :-)

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
    Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
    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.

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now