wugren hace 3 años
padre
commit
c8a7e23d14
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hidapi/windows/hid.c

+ 1 - 1
hidapi/windows/hid.c

@@ -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);
 
 	/* 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. */