c++ Programming Glossary: hinfo
how to get vendor id and product id of a plugged usb device on windows http://stackoverflow.com/questions/2935184/how-to-get-vendor-id-and-product-id-of-a-plugged-usb-device-on-windows 0x11D2 0x90 0x1F 0x00 0xC0 0x4F 0xB9 0x51 0xED HANDLE hInfo SetupDiGetClassDevs GUID_DEVINTERFACE_USB_DEVICE NULL NULL DIGCF_PRESENT.. NULL NULL DIGCF_PRESENT DIGCF_INTERFACEDEVICE if hInfo INVALID_HANDLE_VALUE qDebug invalid else qDebug valid handle.. Buf for i 0 SetupDiEnumDeviceInfo hInfo i DeviceInfoData i DWORD DataT LPTSTR buffer NULL DWORD buffersize..
|