_SYSERR returns the error code of the last Windows system error.

 

See the Windows System Errors table in the Reference section for examples.