Detecting the keyboard ID

Jan 17, 2012 at 12:56 AM

Hello there.

I was searching over a month this code because lets to lock the keystrokes from reaching the other apps :)

 

My question is this:

Is there a way to identify the keyboard handle, to make the application able to detect from which keyboard came the keystroke?

For example with my laptop:

1. Native PS/2 keyboard (Not interested in this)

2. USB Keyboard (Full, not interested in this)

3. USB Numeric Keyboard (Only numbers 1-9, I want to capture ONLY from this, and avoid from reaching other apps)

 

I'm new to API programming, and it would be great if it could be done.