|
@@ -291,7 +291,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
|
|
|
device_interface_data.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
|
|
device_interface_data.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
|
|
|
|
|
|
|
|
/* Get information for all the devices belonging to the HID class. */
|
|
/* Get information for all the devices belonging to the HID class. */
|
|
|
- device_info_set = SetupDiGetClassDevsA(NULL, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
|
|
|
|
|
|
|
+ device_info_set = SetupDiGetClassDevsA(NULL, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE | DIGCF_ALLCLASSES);
|
|
|
|
|
|
|
|
/* Iterate over each device in the HID class, looking for the right one. */
|
|
/* Iterate over each device in the HID class, looking for the right one. */
|
|
|
|
|
|