Retrieves the most recent extended error
#include <WinNet.au3>
_WinNet_GetLastError ( ByRef $iError, ByRef $sError, ByRef $sName )
| $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 |
| Success: | the most recent error message. |
| Failure: | sets the @error flag to non-zero. |
Search WNetGetLastError in MSDN Library.