Solved

Need All HRESULT values

Posted on 2009-03-31
7
781 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 8

Author Comment

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

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 8

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

770 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