Tuesday, November 5, 2019

Common HRESULT Values

[The following is just a copy of a Microsoft page as accessed on 11-5-2019 -- it's useful to have a copy around, I think. ]

Common HRESULT Values

The following HRESULT values are the most common. More values are contained in the header file Winerror.h.
Here are the values listed alphabetically by name.
NameDescriptionValue
S_OKOperation successful0x00000000
E_ABORTOperation aborted0x80004004
E_ACCESSDENIEDGeneral access denied error0x80070005
E_FAILUnspecified failure0x80004005
E_HANDLEHandle that is not valid0x80070006
E_INVALIDARGOne or more arguments are not valid0x80070057
E_NOINTERFACENo such interface supported0x80004002
E_NOTIMPLNot implemented0x80004001
E_OUTOFMEMORYFailed to allocate necessary memory0x8007000E
E_POINTERPointer that is not valid0x80004003
E_UNEXPECTEDUnexpected failure0x8000FFFF

Here are the values listed in numeric order by value.
ValueNameDescription
0x00000000S_OKOperation successful
0x80004001E_NOTIMPLNot implemented
0x80004002E_NOINTERFACENo such interface supported
0x80004003E_POINTERPointer that is not valid
0x80004004E_ABORTOperation aborted
0x80004005E_FAILUnspecified failure
0x8000FFFFE_UNEXPECTEDUnexpected failure
0x80070005E_ACCESSDENIEDGeneral access denied error
0x80070006E_HANDLEHandle that is not valid
0x8007000EE_OUTOFMEMORYFailed to allocate necessary memory
0x80070057E_INVALIDARGOne or more arguments are not valid

11-5-2019 -- https://docs.microsoft.com/en-us/windows/win32/seccrypto/common-hresult-values