Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::HResultCode Class Reference

#include <HResult.h>

Public Member Functions

int FindCode (HRESULT hRes) const
 associated error message string. UTF8 More...
 

Public Attributes

HRESULT m_hRes
 
const char * m_pszMsg
 error code for a FACILITY_TYPE. might just use WORD? More...
 

Detailed Description

Used to define a nullptr terminated table of codes (usually) for a single FACILITY_TYPE. ASSUME this array is HRESULT sorted.

Member Function Documentation

◆ FindCode()

int Gray::HResultCode::FindCode ( HRESULT  hRes) const

associated error message string. UTF8

Find a code by its HRESULT assuming this is the first of an array of HResultCode Usually this is all of a single FACILITY_TYPE. like FindSortedARetB()

Returns
-1 = not found.
Todo:
ASSUME codes are sorted ?

Member Data Documentation

◆ m_hRes

HRESULT Gray::HResultCode::m_hRes

◆ m_pszMsg

const char* Gray::HResultCode::m_pszMsg

error code for a FACILITY_TYPE. might just use WORD?


The documentation for this class was generated from the following files: