Windows‎ > ‎Windows Programming‎ > ‎

Error Codes

Here’s a table of the facility codes I’ve been able to identify:

 DecimalHex
 Facility
 0  0 NULL
 1  1
 RPC
 2  2
 Dispatch
 3  3
 Storage
 4
 4
 ITF
 7
 7 Win32
 8
 8 Windows
 9
 9 SSPI
 10
 A
 Control (ADO, OLE, DAO)
  12  C NT (see ntstatus.h)
 19
 13
 URT, the .NET Framework SDK teams, the Common Language Run-time (CLR)

Known Error Code Ranges

 Facility Code Range (Decimal)
 Fac. (Hex)
 Range (Hex)
 Facility
 Name
 
 Cf.
 4 512-527 004  0200-020F OLE connection point
 olectl.h
 7
 0-15301
 007
 0000-3BC5 Windows API
 winerror.h
 7
 16485-15539
 007
 4000-40FF OLE winerror.h
 7
 16485-15539
 007
 4000-40FF COM winerror.h
 10
 5-746 00A  0005-02EA OLE control olectl.h
 10 3000-3672 00A 0BB8-0E58 DAO dbdaoerr.h
 10 3000-3754 00A 0BB8-0EAA ADO adoint.h
 19 4096-7938
 013
 1000-1F02 COR (CLR)
 corerror.h

Common Error Codes

The table below lists some Windows error codes that in my experience have occurred rather frequently. Sometimes they have shown up while debugging ASP code, sometimes while writing .NET code that is callable from COM, and so forth.
Showing 22 items
Error CodeDecimalFacilitySymbolFile
Sort 
 
Sort 
 
Sort 
 
Sort 
 
Sort 
 
Error CodeDecimalFacilitySymbolFile
80070003 -2,147,024,893 Win32 ERROR_PATH_NOT_FOUND winerror.h 
8000FFFF -2,147,418,113 Win32 (COM) E_UNEXPECTED winerror.h 
800401F3 -2,147,221,005 URT (.NET) CO_E_CLASSSTRING corerror.h 
80070002 -2,147,024,894 Win32 ERROR_FILE_NOT_FOUND winerror.h 
80070005 -2,147,024,891 Win32 E_ACCESSDENIED winerror.h 
80070006 -2,147,024,890 Win32 E_HANDLE winerror.h 
8007000E -2,147,024,882 Win32 E_OUTOFMEMORY winerror.h 
80070020 -2,147,024,864 Win32 ERROR_SHARING_VIOLATION winerror.h 
80070032 -2,147,024,846 Win32 ERROR_NOT_SUPPORTED winerror.h 
80070057 -2,147,024,809 Win32 E_INVALIDARG winerror.h 
80131509 -2,146,233,079 URT (.NET) COR_E_INVALIDOPERATION corerror.h 
80131522 -2,146,233,054 URT (.NET) COR_E_TYPELOAD corerror.h 
800A01AD -2,146,827,859 OLE control   
800A01AE -2,146,827,858 OLE control   
80004003 -2,147,467,261 NULL ERROR_PATH_NOT_FOUND winerror.h 
80131515 -2,146,233,067 COR (CLR) COR_E_NOTSUPPORTED corerror.h 
80131500 -2,146,233,088 URT (.NET) COR_E_EXCEPTION corerror.h 
80070050 -2,147,024,816 Win32 ERROR_FILE_EXISTS ? (winerror.h lists 0x80 as ERROR_FILE_EXISTS) 
80004005 -2,147,467,259 Win32 E_FAIL winerror.h 
80131524 -2,146,233,052 URT (.NET) COR_E_DLLNOTFOUND corerror.h 
8007007E -2,147,024,770 Win32 ERROR_MOD_NOT_FOUND winerror.h 
C0000005 -1,073,741,819 NT STATUS_ACCESS_VIOLATION ntstatus.h 
Showing 22 items
ċ
CorError.h
(120k)
Glenn Doten,
Nov 27, 2009, 10:40 AM
ċ
OleCtl.h
(22k)
Glenn Doten,
Nov 27, 2009, 10:55 AM
ċ
WinError.h
(1028k)
Glenn Doten,
Nov 27, 2009, 10:40 AM
ċ
adoint.h
(398k)
Glenn Doten,
Nov 27, 2009, 10:55 AM
ċ
dbdaoerr.h
(68k)
Glenn Doten,
Nov 27, 2009, 11:01 AM
Comments