本文介绍了如何获取USB设备列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Windows系统获取usb设备列表。

I want to get the list of usb devices from the Windows system.

我不知道Win 32编程和所有。

I don't know Win 32 programming and all.

我使用Qt开发,没有任何想法来解决我的问题。

I am using Qt for development, don't have any idea to solve my problem.

我已经搜索了代码,找不到任何东西。

I have searched code for that, but I can't find anything.

推荐答案

我不确定,但在网站我发现这样的,可能对您有用:

I'm not sure, but on libusb site I have found such documentation, which may be useful for you:

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

但是!有人已经问过这个问题:在QT中编程以控制USB设备?答案是:否。

But!, here some one already asked this question: Program in QT to control an USB device ? And the answer is: no.

这篇关于如何获取USB设备列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 08:06