Error Handling
COM+ functions and object methods typically return an HRESULT (handle to a result). The HRESULT is actually a 32-bit value that represents success, warning, or error codes.
The high-order bit of the HRESULT is the severity code. A zero severity represents success (SEVERITY_SUCCESS) and a one severity represents failure (SEVERITY_FAILURE). The next four high-order bits are reserved (always set to zero). The sixth through sixteenth high-order bits represent the facility. The facility can be any of the following:
FACILITY_WINDOWS | 8 |
FACILITY_STORAGE | 3 |
FACILITY_SSPI | 9 |
FACILITY_SETUPAPI | 15 |
FACILITY_RPC | 1 |
FACILITY_WIN32 | 7 |
FACILITY_CONTROL | 10 |
FACILITY_NULL | 0 |
FACILITY_MSMQ | 14 |
FACILITY_MEDIASERVER | 13 |
FACILITY_INTERNET | 12 |
FACILITY_ITF |
Get COM+ Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.