|
@@ -274,7 +274,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
|
|
|
struct hid_device_info *cur_dev = NULL;
|
|
struct hid_device_info *cur_dev = NULL;
|
|
|
|
|
|
|
|
/* Windows objects for interacting with the driver. */
|
|
/* Windows objects for interacting with the driver. */
|
|
|
- GUID InterfaceClassGuid = {0x4d1e55b2, 0xf16f, 0x11cf, {0x88, 0xcb, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30} };
|
|
|
|
|
|
|
+ GUID InterfaceClassGuid = { 0x28d78fad, 0x5a12, 0x11D1, { 0xae, 0x5b, 0x00, 0x00, 0xf8, 0x03, 0xa8, 0xc2 } };
|
|
|
SP_DEVINFO_DATA devinfo_data;
|
|
SP_DEVINFO_DATA devinfo_data;
|
|
|
SP_DEVICE_INTERFACE_DATA device_interface_data;
|
|
SP_DEVICE_INTERFACE_DATA device_interface_data;
|
|
|
SP_DEVICE_INTERFACE_DETAIL_DATA_A *device_interface_detail_data = NULL;
|
|
SP_DEVICE_INTERFACE_DETAIL_DATA_A *device_interface_detail_data = NULL;
|
|
@@ -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(&InterfaceClassGuid, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
|
|
|
|
|
|
|
+ device_info_set = SetupDiGetClassDevsA(NULL, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
|
|
|
|
|
|
|
|
/* 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. */
|
|
|
|
|
|