devcon.exe driverfiles显示设备驱动
2022-01-25
116
0
devcon.exe driverfiles "USB\VID_0483&PID_3748&REV_0100"
USB\VID_0483&PID_3748\5&1E7D8DB7&0&5
Name: STM32 STLink
Driver installed from C:\Windows\INF\oem27.inf [USB_Install]. 3 file(s) used by driver:
C:\Windows\system32\DRIVERS\winusb.sys
C:\Windows\system32\WinUSBCoInstaller2.dll
C:\Windows\system32\WdfCoInstaller01009.dll
1 matching device(s) found.
应该是从计算机\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class{36fc9e60-c465-11cf-8056-444553540000}\0002中获取相关信息。
{36fc9e60-c465-11cf-8056-444553540000}是USB的GUID分类,在INF中文件中指定,详见:http://www.pnpon.com/article/detail-146.html
如使用函数SetupDiOpenDevRegKey来打开注册表,并获取信息。