Solved

Need All HRESULT values

Posted on 2009-03-31
7
788 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 9

Expert Comment

by:masheik
ID: 24036547
0
 
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 20 total points
ID: 24036582
HRESULT values can vary, depending on what functionality is used.  What are you trying to do?
0
Technology Partners: 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!

 
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 20 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

738 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