Function Reference


_WinAPI_GetDeviceDriverFileName

Retrieves the path available for the specified device driver

#include <WinAPIProc.au3>
_WinAPI_GetDeviceDriverFileName ( $pDriver )

Parameters

$pDriver The load address of the device driver. This value can be retrieved using the _WinAPI_EnumDeviceDrivers() function.

Return Value

Success: The path to the device driver.
Failure: Empty string, call _WinAPI_GetLastError() to get extended error information.

See Also

Search GetDeviceDriverFileName in MSDN Library.

Example

#include <Array.au3>
#include <WinAPIProc.au3>

Local $aInfo, $aData = _WinAPI_EnumDeviceDrivers()
If IsArray($aData) Then
        Dim $aInfo[$aData[0]][3]
        For $i = 1 To $aData[0]
                $aInfo[$i - 1][0] = $aData[$i]
                $aInfo[$i - 1][1] = _WinAPI_GetDeviceDriverBaseName($aData[$i])
                $aInfo[$i - 1][2] = _WinAPI_GetDeviceDriverFileName($aData[$i])
        Next
EndIf

_ArrayDisplay($aInfo, '_WinAPI_EnumDeviceDrivers')