Systemwide USB keyboard hook

571 views Asked by At

im looking into the WDK at the moment to see how i would be able to make a systemwide keyboard hook on USB keyboards ( and a specific ID ).

What i want to be able to is to filter the keystrokes coming in from that specific USB keyboard (USB HID/keyboard), and be able to send that to a specific application/process only.

Ive seen examples of applications that has to be running that can do that in combination of rawinput and a hook, but i would like it to be systemwide and not demanding an application to run.

I can find examples that makes it quite easy to do with a PS2 keyboard, but when it comes to the USB it starts to look very different.

anyone could suggest me the correct model it has to be based on, and even better examples of how it would be possible to do that ?

and something that would work from XP/windows7 to Windows10 also.

0

There are 0 answers