![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#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 |
Define HRESULT error codes and what they mean. HResult::FromPOSIX()
#define FAILED | ( | x | ) | (((HRESULT)(x)) < S_OK) |
#define HRESULT_ENTRY | ( | a, | |
b, | |||
c, | |||
d | |||
) | a=MAKE_HRESULT(1,b,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()
#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 SUCCEEDED | ( | x | ) | (((HRESULT)(x)) >= S_OK) |
#define THROW_DEF __noop |