Solved

Need All HRESULT values

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

Expert Comment

by:masheik
Comment Utility
0
 
LVL 7

Expert Comment

by:HalfAsleep
Comment Utility
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
Comment Utility
HRESULT values can vary, depending on what functionality is used.  What are you trying to do?
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 8

Author Comment

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

Author Comment

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

Accepted Solution

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

Assisted Solution

by:DanRollins
DanRollins earned 20 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now