# Function Reference

# _WinAPI_EnumDeviceDrivers

Retrieves the load address for each device driver in the system

#include <WinAPIProc.au3>
_WinAPI_EnumDeviceDrivers ( )

## Return Value

Success: | The array of device driver addresses. The zeroth array element contains the number of addresses.
Failure: | Sets the @error flag to non-zero.

## See Also

Search EnumDeviceDrivers 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')