如何获取USB设备列表
我不知道,但libusb网站,我发现这样的documentation,这可能对您有用:
usb_init -- Initialize libusb
usb_find_busses -- Finds all USB busses on system
usb_find_devices -- Find all devices on all USB devices
usb_get_busses -- Return the list of USB busses found
但是!here有人已经问过这个问题:在QT至计划控制USB设备?答案是:不。
我建议你“玩”devcon.exe(见http://support.microsoft.com/kb/311272)。
最新版本的实用程序的源代码为,您可以在Windows DDK中找到(请参阅并从http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx下载)。在C:\ WinDDK \ 7600.16385.1 \ tools \ devcon \ i386和C:\ WinDDK \ 7600.16385.1 \ src \ setup \ devcon目录中安装DDK之后。
devcon是一个非常好的例子,您可以使用Device Installation API(SetupDi-API)来做什么。
Downvoting的原因是什么? – 2012-07-11 14:51:21
错误,也许是因为它只能得到你的鼠标/键盘/ HID设备?记录不是我的d/w! – 2012-07-12 15:16:42
谢谢你的回复。 我不能使用任何第三方资源 任何其他的想法 – user198725878 2010-06-04 13:31:10
@new:想法做什么* *是什么呢?您只需要提供设备列表,改善您的问题。 – 2010-06-04 13:45:20