Function Reference


_WinAPI_SetLastError

Sets the last-error code for the calling thread

#include <WinAPI.au3>
_WinAPI_SetLastError ( $iErrorCode )

Parameters

$iErrorCode The last error code for the thread

Return Value

None.

Remarks

The last error code is kept in thread local storage so that multiple threads do not overwrite each other's
values.

See Also

Search SetLastError in MSDN Library.