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.
| Name | Description | Value |
|---|---|---|
| S_OK | Operation successful | 0x00000000 |
| E_ABORT | Operation aborted | 0x80004004 |
| E_ACCESSDENIED | General access denied error | 0x80070005 |
| E_FAIL | Unspecified failure | 0x80004005 |
| E_HANDLE | Handle that is not valid | 0x80070006 |
| E_INVALIDARG | One or more arguments are not valid | 0x80070057 |
| E_NOINTERFACE | No such interface supported | 0x80004002 |
| E_NOTIMPL | Not implemented | 0x80004001 |
| E_OUTOFMEMORY | Failed to allocate necessary memory | 0x8007000E |
| E_POINTER | Pointer that is not valid | 0x80004003 |
| E_UNEXPECTED | Unexpected failure | 0x8000FFFF |
Here are the values listed in numeric order by value.
| Value | Name | Description |
|---|---|---|
| 0x00000000 | S_OK | Operation successful |
| 0x80004001 | E_NOTIMPL | Not implemented |
| 0x80004002 | E_NOINTERFACE | No such interface supported |
| 0x80004003 | E_POINTER | Pointer that is not valid |
| 0x80004004 | E_ABORT | Operation aborted |
| 0x80004005 | E_FAIL | Unspecified failure |
| 0x8000FFFF | E_UNEXPECTED | Unexpected failure |
| 0x80070005 | E_ACCESSDENIED | General access denied error |
| 0x80070006 | E_HANDLE | Handle that is not valid |
| 0x8007000E | E_OUTOFMEMORY | Failed to allocate necessary memory |
| 0x80070057 | E_INVALIDARG | One or more arguments are not valid |
Send comments about this topic to Microsoft
Build date: 3/6/2012
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.
- 2/9/2012
- Dreamweiver
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.
- 10/31/2011
- Simon J. Richter
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
- 9/16/2009
- lxd4e
- 2/15/2011
- Banddelning
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.
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.
- 1/27/2010
- Jo Lines - MSFT
- 2/15/2011
- Banddelning