8 out of 12 rated this helpful - Rate this topic

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

 

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
unknown HRESULT Return value
Hi, When I tried to access the private message queue of a remote machine it accessed the queue info of that particular remote machine, but when I used the below code hr = MQPathNameToFormatName(pwcsQueueName,//IN:Queue pathname wcsFormatName,//OUT:Format name &dwNumChars);//IN/OUT: Size of format name the value returned into " hr" was an unknown value "-1072824300" Can anyone tell me why is it so because for a local machine "hr" result was "S_OK" Thank You.
S_FALSE
Another important one is S_FALSE (0x00000001), which is returned from functions that were successful, but in a different way than expected. Typical uses would be connecting to a service when a connection already exists and was reused, or a query function returning an empty set.
HRESULT 0x8007042c
  
The dependency service or group failed to start. (Exception from HRESULT 0x8007042c).
I get this messaage when trying to install netlibrary's media center. please help
lxd4e@hotmail.com

Thanks alot
Please direct questions to the microsoft.public.platformsdk.security newsgroup
The Community Content section of an MSDN library topic provides an area where developers can collaborate on additional information related to that topic. Use this section to contribute code examples, tips and tricks, and links to other relevant content.

You can use the MSDN Forums (http://forums.microsoft.com/msdn/) or the Microsoft public security newsgroups (http://www.microsoft.com/technet/community/newsgroups/security/) to ask questions or participate in discussions about the APIs.

If you receive useful information from the forums that you want to share with other developers, we welcome you to post the information here in the community content.

Thank you.