Because these codes are defined in Win Error.h for anyone to use, sometimes the codes are returned by non-system software.
Sometimes the code is returned by a function deep in the stack and far removed from your code that is handling the error.
The following list describes system error codes (errors 500 to 999).
They are returned by the Get Last Error function when many functions fail.
To retrieve the description text for the error in your application, use the Format Message function with the FORMAT_MESSAGE_FROM_SYSTEM flag.