# Function Reference

# _WinNet_GetLastError

Retrieves the most recent extended error

#include <WinNet.au3>
_WinNet_GetLastError ( ByRef $iError, ByRef $sError, ByRef $sName )

## Parameters

$iError | On return, contains the most recent extended error code
$sError | On return, contains the most recent extended error code message
$sName | On return, the network provider that raised the error

## Return Value

Success: | the most recent error message.
Failure: | sets the @error flag to non-zero.

## See Also

Search WNetGetLastError in MSDN Library.