Windows / Win32
Win32 Code Listings The Win32 documentation groups its failure codes into reference articles, one per subsystem: the sockets errors in one, the WinINet ones in another, the COM ones spread across ten. Each is listed below with the header it belongs to, where it names one, and every constant it defines.
These listings are the only source here for names that never reached a header dump, and they carry a sentence of prose for names that did.
Listing Header Codes Search protocol handler error messages searchapi.h 12 Codec Error Codes 45 ASN.1 Encoding/Decoding Return Values 19 Authentication Return Values 68 Certificate and Trust Return Values 17 Checking Counter Data Status Codes 14 Client Error Codes winbio_err.h 55 COM Error Codes (Generic) winerror.h 196 COM Error Codes (UI, Audio, DirectX, Codec) winerror.h 161 COM Error Codes (XACT, SCHED, OLE) winerror.h 211 COM Error Codes (STG, RPC) winerror.h 137 COM Error Codes (Security and Setup) winerror.h 540 COM Error Codes (COMADMIN, FILTER, GRAPHICS) winerror.h 356 COM Error Codes (TPM, PLA, FVE) winerror.h 536 COM Error Codes (FWP, WS, NDIS, HyperV) winerror.h 222 COM Error Codes (VOLMGR, BCD, VHD, SDIAG) winerror.h 150 COM Error Codes (WPN, MBN, P2P, Bluetooth) winerror.h 160 Common HRESULT Values 11 Common Return Codes 86 Compiler Errors 415 CryptXML Error Codes cryptxml.h 17 Custom Action Return Values 5 Direct3D 10 Return Codes 10 Direct3D 11 Return Codes 12 Direct3D 12 Return Codes 10 D3DXFERR Return Values d3dx9xof.h 18 Device Error Codes 5 Digital-Video Errors 10 Direct2D Error Codes 47 DirectComposition error codes dcomp.h 5 DirectDraw Return Codes ddraw.h 116 Displayed Error Messages 3 Distributed Routing Table Return Values drt.h 43 DMO Error Codes mediaerr.h 6 Return Values dxfile.h 28 DirectShow Error and Success Codes vfwmsgs.h 159 MsiExec.exe and InstMsi.exe error messages (for developers) 59 Error Codes (Setup API) 7 Error Constants portabledevice.h 45 Error Messages winhttp.h 54 Extensible Storage Engine Error Codes 361 Font-Embedding Function Error Messages 47 Font Package Function Error Messages 73 General MCI Errors 44 Generic ADSI Error Codes 21 Generic COM Error Codes 6 HLSL errors and warnings comperrors.h 477 How to troubleshoot app package signature errors 6 HRESULT Codes Specific to Windows Virtual PC vpccominterfaces.h 57 HTTP Status Codes winhttp.h 41 IMAPI Return Values imapi2error.h 149 Initialization Errors 21 Interpreting Error Codes 65 Logging of Action Return Values 8 Security Management Return Values 27 Manager Return Values msctf.h 22 mciSendString Errors 12 MDM registration error values mdmregistration.h 57 Multimedia Streaming Error and Success Codes 13 NAP Error Constants winerror.h 19 Network Management Error Codes 320 Network Security Return Values 15 OpenGL Error Codes 6 Performance Data Helper Error Codes 86 PNRP NSP Error Codes 19 Preprocessor Errors 22 Rendering Errors 26 Return Values (Windows Accessibility features) 10 Return Values for UiCreatePatchPackage 160 Return Values of JScript and VBScript Custom Actions 5 Routing and Remote Access Error Codes 326 RPC Return Values winerror.h 122 Schannel Error Codes for TLS and SSL Alerts 12 Sequencer Errors 8 SNMP Error Codes snmp.h 19 SSPI Status Codes 77 Structure of COM Error Codes 7 SYSMON Return Values 6 System Error Codes (0-499) winerror.h 244 System Error Codes (1000-1299) winerror.h 219 System Error Codes (12000-15999) winerror.h 415 System Error Codes (1300-1699) winerror.h 232 System Error Codes (1700-3999) winerror.h 224 System Error Codes (4000-5999) winerror.h 282 System Error Codes (500-999) winerror.h 270 System Error Codes (6000-8199) winerror.h 228 System Error Codes (8200-8999) winerror.h 408 System Error Codes (9000-11999) winerror.h 223 Task Scheduler error and success constants winerror.h 44 TBS Return Codes tbs.h 23 Remote Desktop Services WMI provider error codes wbemcli.h 23 Text Service Return Values ctffunc.h 1 Text Store Return Values textstor.h 12 Hit Test Return Values 12 Types of Errors Logged by the HTTP Server API 1 Windows Animation Error Codes winerror.h 22 Error Codes uiautomationcoreapi.h 7 Virtual Disk Service Common Return Codes 162 Waveform-Audio Errors 10 WER Error Codes werapi.h 6 WFP Error Codes winerror.h 57 Win32 Error Codes 58 Win32 Error Codes for ADSI 2.0 50 Windows Event Log Error Constants winerror.h 38 Windows Sockets Error Codes winsock2.h 95 Windows Web Services Return Values 45 Error Messages wininet.h 97 HTTP Status Codes wininet.h 39 WinSNMP Common Error Codes 4 WinSNMP Function Return Values 7 Error Codes (Windows Media Device Manager 11 SDK) 161 Error Codes (Windows Media Format 11 SDK) 250 WMI Error Constants wbemcli.h 180 WMI Non-Error Constants wbemcli.h 14 WUA Networking Error Codes wuerror.h 18 WUA Success and Error Codes wuerror.h 75 XAudio2 Error Codes xaudio2.h 4 XPS Digital Signature API Errors xpsdigitalsignature.h 8 XPS Document Errors xpsobjectmodel.h 75 119 listings, 11185 constants