last-error code
A per-thread value set by Win32 functions when an error occurs. The last-error code can be retrieved by using the GetLastError function.