본문 바로가기

MFC

System Error Code (GetLastError Code)

출처 : https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381(v=vs.85).aspx


System Error Codes

Note  

The information on this page is intended to be used by programm s681383(v=vs.85).aspx ers so that the software they write can better deal with errors. If you are an end-user that is experiencing difficulty with an application you are installing or running, contact customer support for the software that is displaying the error message. To obtain support for a Microsoft product, go tohttp://support.microsoft.com.

The System Error Codes are very broad. Each one can occur in one of many hundreds of locations in the system. Consequently the descriptions of these codes cannot be very specific. Use of these codes requires some amount of investigation and analysis. You need to note both the programmatic and the run-time context in which these errors occur. Because these codes are defined in WinError.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 topics provide lists of system error codes. These values are defined in the WinError.h header file.

Suggestions?

If you have additional suggestions regarding the System Error Codes documentation, given the constraints enumerated at the top of the page, please click the link labeled "Send comments about this topic to Microsoft" below. We appreciate the input.