The HRESULT data type is a 32-bit value is used to describe an error or warning.
Note Most MAPI methods and functions return HRESULT values to provide detailed result information. HRESULT values are also used widely in COM interface methods.
Syntax
ULONG HRESULT;
Remarks
The return value of COM functions and methods is an HRESULT, which is not a handle to an object, but is a 32-bit value with several fields encoded in a single 32-bit ULONG variable.
The following figure represents an HRESULT value.