#Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_UseUpx=n
#PRE_Res_requestedExecutionLevel=None
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include "SetupAPI.au3"
Local $tDevInfo
; 硬件设备 ID
$sDevID = 'PCI\VEN_10DE&DEV_0DEF&SUBSYS_21F417AA&REV_A1'
$hDev = _SetupDiGetClassDevs($DIGCF_ALLCLASSES, Null, $sDevID)
If @error Then
MsgBox(0, '', @error)
Exit
EndIf
$bRet = _SetupDiEnumDeviceInfo($hDev, 0, $tDevInfo)
If $bRet <> True Then
MsgBox(0, '', @error)
Exit
EndIf
$iResult = DllCall('Newdev.dll', 'BOOL', 'DiShowUpdateDevice', _
'ptr', Null, _
'ptr', $hDev, _
'ptr', DllStructGetPtr($tDevInfo), _
'DWORD', 0, _
'BOOL', False)
Win10 14393 x64 测试通过
|