?
Solved

Need All HRESULT values

Posted on 2009-03-31
7
Medium Priority
?
794 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses

765 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