?
Solved

Need All HRESULT values

Posted on 2009-03-31
7
Medium Priority
?
800 Views
Last Modified: 2012-05-06
Hi
I need all HRESULT values. Plz send me a link to ref. or simply copy paste...

Thanks
0
Comment
7 Comments
 
LVL 7

Expert Comment

by:HalfAsleep
ID: 24036549
Here you have some of the common ones.

http://msdn.microsoft.com/en-us/library/aa378137.aspx
0
 
LVL 7

Assisted Solution

by:HalfAsleep
HalfAsleep earned 80 total points
ID: 24036582
HRESULT values can vary, depending on what functionality is used.  What are you trying to do?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 9

Author Comment

by:Subrat (C++ windows/Linux)
ID: 24036683
If CreateFile() API fails then what HRESULT value I should return;
0
 
LVL 9

Author Comment

by:Subrat (C++ windows/Linux)
ID: 24036699
The links given above by Masheik and HalfAsleep are not containing _all_ HRESULTS. Already visited by me before.
0
 
LVL 9

Accepted Solution

by:
Subrat (C++ windows/Linux) earned 0 total points
ID: 24037759
USE HRESULT_FROM_WIN32(GetLastError())
0
 
LVL 49

Assisted Solution

by:DanRollins
DanRollins earned 80 total points
ID: 24080640
Surely you understand that any function can return an HRESULT that can have any value desired.  So there cannot possibly be a complete list of all of them.
As to what you should return to the caller if, for instance, in your ActiveX control a CreateFile() API call failed... You can just return
     E_FAIL
and use some other mechanism to provide details of why the ActiveX's functions failed.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question