title: GetSystemErrorMessage
author: DanielPharos

<code>
function GetSystemErrorMessage(ErrNr: DWORD) : String;
</code>

Retrieves the text associated with a Windows error number. This can be used in conjunction with <tt>GetLastError</tt> directly after a Windows exception has occured.
