OnInitDialog()下添加如下代码:
struct usb_bus *busses, *bus;
// usb_dev_handle *handle = NULL; //这个需定义为全局变量,在读线程中也许使用
usb_init();
usb_find_busses();
usb_find_devices();
busses = usb_get_busses();
for(bus = busses; bus; bus = bus->next) {
struct usb_device *dev;
1