USB Tree View 工程修改版本

本文分享了修改后的USBTreeView源码,该版本已去除GUI,转为cmd命令行输出,适用于USB升级工具及HID设备检测等场景。编译前需安装WDK,附带编译好的dll可供直接调用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

有段时间没有更新博客了,看了一下有好多朋友需要USB Tree View 源码,上一个工程只给了编译好的dll,还有通过AutoIt 调用的源码,好多朋友可能不熟悉autoit,今天把USB Tree View 修改版源码也分享给大家,希望能给USB开发的朋友带来帮助。

修改之后的源码我去掉了GUI,修改成了cmd命令行输出,运行源码前大家记得安装WDK,否则可能运行不起来,大家也可以到微软官网去下载  Windows Driver Kit (WDK) 8.0 Samples.zip 里面有很多WDK例程

 

编译好的dll可以直接调用,需要cmd输出的朋友记得将编译输出选项修改为 exe

USB Tree View修改版本的源码可以用于USB升级工具、USB HID设备检测等场景,希望能帮到大家!

https://download.csdn.net/download/es15071848238/12074826

 

The USB Device Tree Viewer, short UsbTreeView is based upon the Microsoft "USBView" sample application found in the Windows Driver Development Kits and now standalone at GitHub. But it is source code only, there is no executable for end users provided. Meanwhile USBView comes as executables as part of the "Debugging Tools für Windows", see here: USBView. UsbTreeView started with the USBView source code from the DDK for Server 2003. Here are the improvements I've done: Informations from the Windows Device Management are collected and matched with the found USB devices; Therefore UsbTreeView can show the child devices, including drive letters and COM-ports Window position is saved Background color and font of the right pane can be set (the font shown in the screenshots is DOSLike 7) Text output rearranged Keeps the tree item selection over refresh way more descriptors are decoded, as Audio 2.0 Hexdump of the descriptors can be shown Safe removal, device restart and port restart Extended USB information available under Windows 8 (taken from the latest USBView sample application) Extended information about host controllers Enumeration of the USB devices accelerated and independent from the treeview Failed USB requests are re-tried in the background, e.g. if a USB mouse was moved while requesting its properties Toolbar with jump-lists for easily finding devices in complex trees TreeView with handmade 16x16 icons, USBView used 32x32 icons scaled down to 15x15 many minor improvements With V3.0 No more enumeration of all devices on arrival and removal of a USB device Search function (not full text, only things like device ID, drive letter, volume name etc) Some new Keyboard shortcuts (Alt+D to open the drives list, Alt+O the Others list, Alt+S to focus the search edit, Alt+Left/Right to cycle thru the search hits Options not to expand empty hubs or hub with only empty hubs attached Options to jump to arrived and removed devices Option to expand tree items to make selected
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值