GUID GetDeviceGUID;
        GetDeviceGUID.Data1=0x745a17a0;
GetDeviceGUID.Data2=0x74d3;
GetDeviceGUID.Data3=0x11d0;
GetDeviceGUID.Data4[0]=0xb6;
GetDeviceGUID.Data4[1]=0xfe;
GetDeviceGUID.Data4[2]=0x00;
GetDeviceGUID.Data4[3]=0xa0;
GetDeviceGUID.Data4[4]=0xc9;
GetDeviceGUID.Data4[5]=0x0f;
GetDeviceGUID.Data4[6]=0x57;
GetDeviceGUID.Data4[7]=0xda;
HDEVINFO hDevInfo1= SetupDiGetClassDevs(&GetDeviceGUID,NULL,0,
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
// 查找USB设备接口
SP_DEVICE_INTERFACE_DATA strtInterfaceData;
DWORD dwIndex = 0;
BOOL bSuccess = SetupDiEnumDeviceInterfaces(hDevInfo1,NULL,&GetDeviceGUID,dwIndex,
&strtInterfaceData);
DWORD Error_=GetLastError(); HID C++ HIDC++259