c/c++ windows 通过hidsdi进行串口通信
GUID InterfaceClassGuid = { 0x4d1e55b2, 0xf16f, 0x11cf, { 0x88, 0xcb, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30 } };
SP_DEVINFO_DATA devinfo_data;
SP_DEVICE_INTERFACE_DATA device_interface_data;
SP_DEVICE_INTERFACE_DETAIL_DATA_A* device_interface_detail_data = NULL;
HDEVINFO device_info_set = INVALID_HANDLE_VALUE;
int device_index = 0;
HDEVINFO DeviceInfoSet;
DeviceInfoSet = SetupDiCreateDeviceInfoList(NULL, NULL);
devinfo_data.cbSize = sizeof(SP_DEVINFO_DATA);
1