本帖最后由 afan 于 2020-11-9 15:32 编辑
我怎么知道你要哪个?只有你自己才清楚要干什么获取什么…
给你写段代码获取所有,可以自己添加条件过滤出需要的Msgbox(0, '', _GetUSBDriverDesc())
Func _GetUSBDriverDesc()
Local $sHKey = 'HKLM64\SYSTEM\ControlSet001\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}'
Local $sInfo = '', $sDriverDesc, $ii = 1
While 1
$sSubKey = RegEnumKey($sHKey, $ii)
If @error Then ExitLoop
$ii += 1
$sDriverDesc = RegRead($sHKey & '\' & $sSubKey, 'DriverDesc')
$sInfo &= $sDriverDesc & @CRLF
WEnd
Return $sInfo
EndFunc ;==>_GetUSBDriverDesc
|