Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cRegVar.h
Go to the documentation of this file.
1 //
5 //
6 
7 #ifndef _INC_cRegVar_H
8 #define _INC_cRegVar_H
9 #ifndef NO_PRAGMA_ONCE
10 #pragma once
11 #endif
12 
13 #include "cRegKeyX.h"
14 
15 #if defined(_WIN32)
16 
17 namespace GrayLib
18 {
19  class GRAYLIB_LINK cVariant;
20  class GRAYLIB_LINK cRegVar
21  {
24  public:
25  cRegKeyX& m_Reg;
26 
27  protected:
29  static HRESULT GRAYCALL SetRegValue(cVariant& rvVal, DWORD dwRegType, const void* pData, size_t dwDataSize);
30 
31  public:
32  cRegVar(cRegKeyX& reg)
33  : m_Reg(reg)
34  {
35  }
36 
37  HRESULT EnumVar(ITERATE_t i, OUT cStringA& rsPropName, OUT cVariant& rvValRet);
38  HRESULT QueryValueVar(const FILECHAR_t* pszKey, OUT cVariant& rvValRet);
39  HRESULT WriteValueVar(const FILECHAR_t* pszKey, const cVariant& vVal);
40  };
41 }
42 #endif // _WIN32
43 #endif // _INC_cRegVar_H
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cMesh.h:22
class __DECL_IMPORT cVariant
Definition: cJSONWriter.h:19
int ITERATE_t
like size_t but signed
Definition: Index.h:28
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22
cStringT< char > cStringA
Definition: cString.h:635