Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
HResult.h File Reference
#include "StrConst.h"
#include "cPair.h"
#include "FileName.h"
#include "cUnitTestDecl.h"
#include "HResultWin32.tbl"
#include "HResults.tbl"

Go to the source code of this file.

Classes

class  Gray::HResultCode
 
class  Gray::HResult
 

Namespaces

 Gray
 < The main namespace for all Core functions.
 

Macros

#define THROW_DEF   __noop
 
#define SUCCEEDED(x)   (((HRESULT)(x)) >= S_OK)
 
#define FAILED(x)   (((HRESULT)(x)) < S_OK)
 
#define HRESULT_WIN32_DEF(a, b, c)   a=b,
 
#define MAKE_HRESULT(sev, fac, code)   ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
 
#define HRESULT_WIN32_C(x)   MAKE_HRESULT(1,FACILITY_WIN32,(WORD)(x))
 a constant LSTATUS/error_status_t with no check, unlike HRESULT_FROM_WIN32() More...
 
#define HRESULT_ENTRY(a, b, c, d)   a=MAKE_HRESULT(1,b,c),
 

Typedefs

typedef LONG Gray::LSTATUS
 AKA error_status_t. FACILITY_WIN32 codes returned from RegCreateKeyEx() etc. Maybe NOT GetLastError() since it CAN sometimes return HRESULT. More...
 

Enumerations

enum  Gray::FACILITY_TYPE { Gray::FACILITY_POSIX = 5 , Gray::FACILITY_MMSYS = 0x100 , Gray::FACILITY_D3D = 0x876 }
 
enum  Gray::HRESULT_WIN32_TYPE_
 
enum  Gray::HRESULT_OTHER_TYPE_
 

Variables

__DECL_IMPORT va_list Gray::k_va_list_empty
 

Detailed Description

Define HRESULT error codes and what they mean. HResult::FromPOSIX()

Macro Definition Documentation

◆ FAILED

#define FAILED (   x)    (((HRESULT)(x)) < S_OK)

◆ HRESULT_ENTRY

#define HRESULT_ENTRY (   a,
  b,
  c,
 
)    a=MAKE_HRESULT(1,b,c),

◆ HRESULT_WIN32_C

#define HRESULT_WIN32_C (   x)    MAKE_HRESULT(1,FACILITY_WIN32,(WORD)(x))

a constant LSTATUS/error_status_t with no check, unlike HRESULT_FROM_WIN32()

◆ HRESULT_WIN32_DEF

#define HRESULT_WIN32_DEF (   a,
  b,
 
)    a=b,

◆ MAKE_HRESULT

#define MAKE_HRESULT (   sev,
  fac,
  code 
)    ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )

◆ SUCCEEDED

#define SUCCEEDED (   x)    (((HRESULT)(x)) >= S_OK)

◆ THROW_DEF

#define THROW_DEF   __noop