HResult.Facilities
HResult bits 16-26 and 29 (mask 0x27FF0000) represent facility code.
HResult.Facilities can be queried for facility display texts.
// Get by facility code
IMessageDescription messageDescription = HResult.Facilities.Codes[HResultIds.FACILITY_CERT];
// Print template text
WriteLine(messageDescription.Template); // "Certificate client or server"
Table can also be queried by key.
// Get by key
IMessageDescription messageDescription = HResult.Facilities.Keys["WINDOWS"];
// Print template text
WriteLine(messageDescription.Template); // "Windows subsystem"
HResultIds contains facilities constants.
// Get code
int hresult = HResultIds.FACILITY_CERT;
// Print code
WriteLine("0x{0:X8}", hresult); // "0x000B0000"
Full example
using Avalanche.Message;
using Avalanche.StatusCode;
using static System.Console;
class facilities
{
public static void Run()
{
{
// <01>
// Get by facility code
IMessageDescription messageDescription = HResult.Facilities.Codes[HResultIds.FACILITY_CERT];
// Print template text
WriteLine(messageDescription.Template); // "Certificate client or server"
// </01>
}
{
// <02>
// Get by key
IMessageDescription messageDescription = HResult.Facilities.Keys["WINDOWS"];
// Print template text
WriteLine(messageDescription.Template); // "Windows subsystem"
// </02>
}
{
// <03>
// Get code
int hresult = HResultIds.FACILITY_CERT;
// Print code
WriteLine("0x{0:X8}", hresult); // "0x000B0000"
// </03>
}
}
}
Table
FacilityMessages contains following facility display texts.
HResult | Key | Text |
---|---|---|
0x00000000 | NULL | Basic status codes |
0x00010000 | RPC | Remote Procedure Call |
0x00020000 | DISPATCH | COM Dispatch |
0x00030000 | STORAGE | OLE Storage |
0x00040000 | ITF | COM/OLE Interface management |
0x00070000 | WIN32 | Win32 |
0x00080000 | WINDOWS | Windows subsystem |
0x00090000 | SSPI | Security API layer |
0x000A0000 | CONTROL | Control mechanism |
0x000B0000 | CERT | Certificate client or server |
0x000C0000 | INTERNET | Wininet related |
0x000D0000 | MEDIASERVER | Windows Media Server |
0x000E0000 | MSMQ | Microsoft Message Queue |
0x000F0000 | SETUPAPI | Setup API |
0x00100000 | SCARD | Smart-card subsystem |
0x00110000 | COMPLUS | COM+ |
0x00120000 | AAF | Microsoft agent |
0x00130000 | URT | .NET CLR (Common Language Runtime) |
0x00140000 | ACS | Audit collection service |
0x00150000 | DPLAY | Direct Play |
0x00160000 | UMI | Ubiquitous memoryintrospection service |
0x00170000 | SXS | Side-by-side servicing |
0x00180000 | WINDOWS_CE | Windows CE |
0x00190000 | HTTP | HTTP support |
0x001A0000 | USERMODE_COMMONLOG | Common Logging |
0x001F0000 | USERMODE_FILTER_MANAGER | User mode filter manager |
0x00200000 | BACKGROUNDCOPY | Background copy control |
0x00210000 | CONFIGURATION | Configuration services |
0x00220000 | STATE_MANAGEMENT | State management services |
0x00230000 | METADIRECTORY | Microsoft Identity Server |
0x00240000 | WINDOWSUPDATE | Windows update |
0x00250000 | DIRECTORYSERVICE | Active Directory |
0x00260000 | GRAPHICS | Graphics drivers |
0x00270000 | SHELL | User Shell |
0x00280000 | TPM_SERVICES | Trusted Platform Module services |
0x00290000 | TPM_SOFTWARE | Trusted Platform Module applications |
0x00300000 | PLA | Performance Logs and Alerts |
0x00310000 | FVE | Full volume encryption |
0x00320000 | FWP | Firewall Platform |
0x00330000 | WINRM | Windows Resource Manager |
0x00340000 | NDIS | Network Driver Interface |
0x00350000 | USERMODE_HYPERVISOR | Usermode Hypervisor components |
0x00360000 | CMI | Configuration Management Infrastructure |
0x00370000 | USERMODE_VIRTUALIZATION | User mode virtualization subsystem |
0x00380000 | USERMODE_VOLMGR | User mode volume manager |
0x00390000 | BCD | Boot Configuration Database |
0x003A0000 | USERMODE_VHD | User mode virtual hard disk support |
0x003C0000 | SDIAG | System Diagnostics |
0x003D0000 | WEBSERVICES | Web Services |
0x00500000 | WINDOWS_DEFENDER | Windows Defender component |
0x00510000 | OPC | Open connectivity service |
0x05EA0000 | DLT | Distributed Link Tracking |
0x001B0000 | WER | Wired Equivalent Privacy Encryption |
0x002A0000 | UI | User Interface |
0x002B0000 | XAML | eXtended Application Markup Language |
0x002C0000 | ACTION_QUEUE | |
0x003E0000 | WPN | Notification Platform |
0x003F0000 | WINDOWS_STORE | Windows Store |
0x00400000 | INPUT | Input |
0x00420000 | EAP | Extensible Authentication Protocol |
0x00520000 | XPS | XPS (XML Paper Specification) Document |
0x00530000 | RAS | |
0x00540000 | MBN | |
0x00550000 | EAS | Exchange Active Synchronization |
0x00620000 | P2P_INT | |
0x00630000 | P2P | Peer Graphing API |
0x00640000 | DAF | |
0x00650000 | BLUETOOTH_ATT | Bluetooth ATT (Attribute Protocol) |
0x00660000 | AUDIO | Audio |
0x006D0000 | VISUALCPP | |
0x00700000 | SCRIPT | |
0x00710000 | PARSE | |
0x00780000 | BLB | |
0x00790000 | BLB_CLI | |
0x007A0000 | WSBAPP | |
0x00800000 | BLBUI | |
0x00810000 | USN | |
0x00820000 | USERMODE_VOLSNAP | |
0x00830000 | TIERING | |
0x00850000 | WSB_ONLINE | |
0x00860000 | ONLINE_ID | |
0x00990000 | DLS | |
0x00A00000 | SOS | |
0x00B00000 | DEBUGGERS | Debugger |
0x00E70000 | USERMODE_SPACES | Storage Spaces - Group physicial drives in virtual drives storage pools |
0x01000000 | DMSERVER | |
0x01010000 | DEPLOYMENT_SERVICES_SERVER | Windows Deployment Services (WDS) Server |
0x01020000 | DEPLOYMENT_SERVICES_IMAGING | Windows Deployment Services (WDS) Imaging |
0x01030000 | DEPLOYMENT_SERVICES_MANAGEMENT | Windows Deployment Services (WDS) Management |
0x01040000 | DEPLOYMENT_SERVICES_UTIL | Windows Deployment Services (WDS) Util |
0x01050000 | DEPLOYMENT_SERVICES_BINLSVC | Windows Deployment Services (WDS) Binlsvc |
0x01070000 | DEPLOYMENT_SERVICES_PXE | Windows Deployment Services (WDS) Pxe |
0x01080000 | DEPLOYMENT_SERVICES_TFTP | Windows Deployment Services (WDS) TFP |
0x01100000 | DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT | Windows Deployment Services (WDS) Transport Manager |
0x01160000 | DEPLOYMENT_SERVICES_DRIVER_PROVISIONING | Windows Deployment Services (WDS) Driver Provisioning |
0x01210000 | DEPLOYMENT_SERVICES_MULTICAST_SERVER | Windows Deployment Services (WDS) Multicast Server |
0x01220000 | DEPLOYMENT_SERVICES_MULTICAST_CLIENT | Windows Deployment Services (WDS) Multicast Client |
0x01250000 | DEPLOYMENT_SERVICES_CONTENT_PROVIDER | Windows Deployment Services (WDS) Content Provider |
0x01310000 | LINGUISTIC_SERVICES | |
0x03750000 | WEB | |
0x03760000 | WEB_SOCKET | |
0x04460000 | AUDIOSTREAMING | |
0x06000000 | ACCELERATOR | |
0x07010000 | MOBILE | |
0x07CC0000 | WMAAECMA | |
0x08010000 | WEP | WEP Encryption (Wired Equivalent Privacy) |
0x08020000 | SYNCENGINE | |
0x08780000 | DIRECTMUSIC | Direct Music (part of DirectX) - Audio |
0x08790000 | DIRECT3D10 | Direct3D 10 |
0x087A0000 | DXGI | DirectX Graphics Infrastructure |
0x087B0000 | DXGI_DDI | DirectX Graphics Infrastructure Device Driver Interface |
0x087C0000 | DIRECT3D11 | Direct3D 11 |
0x08880000 | LEAP | XAudio2 Internal Errors |
0x08890000 | AUDCLNT | Audio Client |
0x08980000 | WINCODEC_DWRITE_DWM | DirectWrite (part of DirectX) - Text layout and glyph rendering |
0x08990000 | DIRECT2D | Direct 2D (hardware accelerated GUI rendering) |
0x09000000 | DEFRAG | Defragging |
0x09010000 | USERMODE_SDBUS | SD (Secure Digital) Bus - SD Card |
0x09020000 | JSCRIPT | Javascript |
0x0A010000 | PIDGENX | |
0x20AA0000 | AVALANCHE | Avalanche.* |
0x23450000 | MSCORLIB | mscorlib.dll resource codes |