This documentation is archived and is not being maintained.

Where Can I Look Up Win32 Error Codes?

WINERROR.H in the INCLUDE directory of your default system installation contains the error code definitions for the Win32 API functions.

You can look up an error code by typing the code in the Watch window or the QuickWatch dialog box. For example:


Another way to look up error codes is by running the ERRLOOK.EXE utility, located in the Microsoft Visual Studio .NET 2003\Common7\Tools directory, to retrieve a system error message or module error message.

See Also

Debugging Visual C++ FAQs | Debugging Visual C++