Lresult: Return Value of Windows process or callback function in Win32 environment hresult: Return Value of COM function and method
Hresult is a simple data type, which is usually used as the return value by attributes and ATL. The following table describes different values. The header file winerror. h contains more values.
Description
S_ OK operation successful 0x00000000
E_unexpected: unexpected failure 0x8000ffff
E_notimpl is not 0x80004001
E_outofmemory failed to allocate the required memory 0x8007000e
One or more e_invalidarg parameters are invalid: 0x80070057
E_nointerface does not support the interface 0x80004002
Invalid e_pointer pointer 0x80004003
Invalid e_handle handle 0x80070006
E_abort operation suspended 0x80004004
Failure 0x80004005 not specified by e_fail
E_accessdenied error 0x80070005
The returned values cannot be compared with s_ OK and s_false, but must be determined using succeeded and failed macros.