SetLastError function kernel32
Sets the last-error code for the calling thread.
To learn more, see learn.microsoft.com/windows/win32/api/errhandlingapi/nf-errhandlingapi-setlasterror.
Implementation
@pragma('vm:prefer-inline')
void SetLastError(WIN32_ERROR dwErrCode) => _SetLastError(dwErrCode);