Defining a HID interface for POS or keyboard in C ++

I have devices for a barcode scanner that can handle various USB interfaces (COMM emulation, HID Keyboard, HID POS, etc.). The problem is that although I can determine if the device is in HID mode, I need to determine if it is a HID Keyboard or HID POS.

Is there a way to determine this using Win32 C ++, preferably with the built-in Windows HID library (hidsdi.h)?

+5
source share
3 answers

You can use HidD_GetHidGuid to get a unique GUID for the device. Device interface interfaces are defined by each device / application software vendor, Microsoft, or third party as they wish. In some cases, publications are published and published and are standard interfaces, in some cases they are not.

USBView Microsoft, USB , GUID . , query , , , , .

GUID: Device Class Device Interface. . , GUID , . WinXP DDK , GUID .

SO: RegisterDeviceNotification() USB-.

+3
+1

HidP_ . , () HIDPOS, , HidD_GetPreparsedData(), HidP_GetCaps(), HidP_GetValueCaps (/..ButtonCaps ..). - Jan Axelson. , POS-. , ( , , .)

+1
source

All Articles