Where can I find a list of all windows error codes?
Because the Windows error code system is extensible, there is no single place to look up all possible Windows error codes. However, you can start with:
- Study the Structure of COM Error Codes. Sometimes knowing what facility an error comes from can help you discover what header file it comes from.
- Visual Studio, since at least 2003, includes an
ERRLOOK
tool. Try that first if you're using Visual Studio. - Many of the codes you'll encounter are in
Winerror.h
. I've included a link to MSDN that contains the contents of that header file. Or you can look at the error code listing by number on this page. - Ideally you know what function returned the code, and then you can lookup the function on MSDN and look at all the possible return values. Of course, you'll need to refer to
Winerror.h
, or an another header file to get the actual values. - You can
find
(like Unixgrep
) in theInclude
directory of the platform SDK for either the hex value of the entire error code, or the decimal value of just the code section--that is, the lower 16 bits. UseHRESULT_CODE
to extract that. See the Structure of COM Error Codes above. - There are a few error lookup tools where you can paste in a value and it looks it up in its database and tells you what it means. Look here and here.
- Google. Use the full hex value. Sometimes you'll find very useful information, or at least clues.
Generally you will get better search results if you print out the error number in hex, instead of signed decimal form.
For example, your first error is -1073741819 which can also be represented by 0xC0000005 in hex. This is an "access violation" error as google will quickly tell you.