How do I get the DeviceID (which keyboard) from inside the kbfiltr driver?
I am connecting multiple keyboard devices (USB barcode scanners), and
installing
a kbfiltr driver to intercept the input, which works great. Now I want to
be able to
tell which keyboard each keystroke is coming from. I get a UnitID from
InputDataStart
but this number changes every time I plug and unplug the usb keyboard (this
number
also resets on reboot). I need something more like the InstanceID that is
unique
for identical devices (same make/model device) and does not change when you
plug and unplug it. NOTE: I understand the Instance ID changes if you
plug the keyboard into a different USB port, I am not worried about this
case, but
plugging and unplugging from the SAME port does not change the InstanceID.
I am an experienced c# programmer, but am very new to C and device drivers.
I have read through ~90% of the DDK, but am still unsure how to move
forward.
Any help would be appreciated.
-Steven (Louis)