D
Don Riesbeck Jr.
I'm working on an application (OEM) using C# that utilizes input from a
keyboard, and USB Barcode Scanner. The scanner is a HID Keyboard device,
and input from it is sent to the system as if it were a keyboard. I need to
be able to identify input from the scanner and keyboard independently. I've
looked at DirectX.DirectInput, and using user32.dll to hook into the
keyboard messages, but neither method seems to allow for identification of
the device sending the input. Inputs from either device are received and
there is not apparent difference.
Is there a way for either method (DI, or hooks) to identify which keyboard
device input is from? Or, is there another method that I overlooked?
(Note that the scanner cannot send pre-fixes, or be configured as a COM
device.)
Thanks in advance!
Don Riesbeck Jr.
keyboard, and USB Barcode Scanner. The scanner is a HID Keyboard device,
and input from it is sent to the system as if it were a keyboard. I need to
be able to identify input from the scanner and keyboard independently. I've
looked at DirectX.DirectInput, and using user32.dll to hook into the
keyboard messages, but neither method seems to allow for identification of
the device sending the input. Inputs from either device are received and
there is not apparent difference.
Is there a way for either method (DI, or hooks) to identify which keyboard
device input is from? Or, is there another method that I overlooked?
(Note that the scanner cannot send pre-fixes, or be configured as a COM
device.)
Thanks in advance!
Don Riesbeck Jr.