Just for reference purposes, all System Error Codes are listed on MSDN:
- System Error Codes (0-499)
- System Error Codes (500-999)
- System Error Codes (1000-1299)
- System Error Codes (1300-1699)
- System Error Codes (1700-3999)
- System Error Codes (4000-5999)
- System Error Codes (6000-8199)
- System Error Codes (8200-8999)
- System Error Codes (9000-11999)
- System Error Codes (12000-15999)
To actually translate numeric error codes to user-readable error codes, use the FormatMessage function.
In .NET, use the following code snippet as a replacement for the FormatMessage function:
var errorMessage = new Win32Exception(Marshal.GetLastWin32Error()).Message;
#include
Gibt’s leider in C# nicht.