举报
#include <SetupApi.au3> ; Remove Local $sDeviceID, $hDevs, $tDevInfo ; Device to be removed. $sDeviceID = "HID\VID_046D&PID_C018\6&34023490&7&0000" _SetupDiCreateDeviceDevs($sDeviceID, $hDevs, $tDevInfo) If _SetupDiRemoveDevice($hDevs, $tDevInfo, True) = 0 Then Msgbox(48, "Failed", "error code: " & @error) Else Msgbox(0, "Succeed", "Succeesfully removed.") EndIf _SetupDiDestroyDeviceInfoList($hDevs) ; Restore ; _CM_Scan_Device_Changes()
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-27 21:33 , Processed in 0.078445 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.