Sets the last-error code for the calling thread
#include <WinAPIError.au3>
_WinAPI_SetLastError ( $iErrorCode )
$iErrorCode | The last error code for the thread |
The last error code is kept in thread local storage so that multiple threads do not overwrite each other's
values.
Search SetLastError in MSDN Library.