HRESULTs
HRESULT is a 32-bit value used by Windows APIs, most notably COM, to indicate success or failure and to convey additional error information. Functions that follow the Windows API convention typically return an HRESULT, allowing callers to test results uniformly.
The value encodes three pieces of information: severity, facility, and code. The most significant bit (bit 31)
Common usage patterns include test macros such as SUCCEEDED(hr) and FAILED(hr), which check the sign of the
Two important helper mechanisms are available: MAKE_HRESULT and HRESULT_FROM_WIN32. MAKE_HRESULT constructs an HRESULT from severity, facility,
See also: SUCCEEDED and FAILED macros, MAKE_HRESULT, HRESULT_FROM_WIN32, facilities and common HRESULT values.
---