函数参考


_WinAPI_GetDeviceDriverFileName

检索指定设备驱动程序的有效路径.

#Include <WinAPIEx.au3>
_WinAPI_GetDeviceDriverFileName ( $hDriver )

参数

$hDriver 设备驱动程序的加载地址.此值可以使用 _WinAPI_EnumDeviceDrivers() 函数检索.

返回值

成功: 返回设备驱动程序的路径.
失败: 返回空字符串,设置 @error 标志为非 0 值.

注意/说明

None

相关

详情参考

在MSDN中搜索


示例/演示


#Include <Array.au3>
#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $Info, $Data = _WinAPI_EnumDeviceDrivers()

If IsArray($Data) Then
    Dim $Info[$Data[0]][3]
    For $i = 1 To $Data[0]
        $Info[$i - 1][0] = $Data[$i]
        $Info[$i - 1][1] = _WinAPI_GetDeviceDriverBaseName($Data[$i])
        $Info[$i - 1][2] = _WinAPI_GetDeviceDriverFileName($Data[$i])
    Next
EndIf

_ArrayDisplay($Info, '_WinAPI_EnumDeviceDrivers')