# Function Reference

# _WinAPI_GetErrorMessage

Retrieves a text error message for the specified system error code

#include <WinAPIError.au3>
_WinAPI_GetErrorMessage ( $iCode [, $iLanguage = 0] )

## Parameters

$iCode | The system error code to retrieve a message.
$iLanguage | [optional] The language identifier.

## Return Value

Success: | The requested message.
Failure: | Empty string.

## Remarks

@error and @extended are preserved on return.

## See Also

Search FormatMessage in MSDN Library.