4 * @brief Declaration of CRegKeyEx C++ wrapper class for reading Windows registry
9 #include "UnicodeString.h"
12 * @brief Class for reading/writing registry.
24 HKEY GetKey() { return m_hKey; } // Only used by VssPrompt.cpp - can be removed?
26 LONG Open(HKEY hKeyRoot, LPCTSTR pszPath);
27 LONG OpenWithAccess(HKEY hKeyRoot, LPCTSTR pszPath, REGSAM regsam);
28 LONG OpenNoCreateWithAccess(HKEY hKeyRoot, LPCTSTR pszPath, REGSAM regsam);
29 bool QueryRegMachine(LPCTSTR key);
30 bool QueryRegUser(LPCTSTR key);
32 LONG WriteDword (LPCTSTR pszKey, DWORD dwVal);
33 LONG WriteString (LPCTSTR pszKey, LPCTSTR pszVal);
34 LONG WriteBool (LPCTSTR pszKey, BOOL bVal);
35 LONG WriteFloat (LPCTSTR pszKey, float fVal);
37 DWORD ReadDword (LPCTSTR pszKey, DWORD defval);
38 float ReadFloat (LPCTSTR pszKey, float defval);
39 BOOL ReadBool(LPCTSTR pszKey, BOOL defval);
40 LONG ReadLong (LPCTSTR pszKey, LONG defval);
41 UINT ReadUint (LPCTSTR pszKey, UINT defval);
42 UINT ReadInt (LPCTSTR pszKey, int defval);
43 short int ReadShort (LPCTSTR pszKey, short int defval);
44 BYTE ReadByte (LPCTSTR pszKey, BYTE defval);
45 String ReadString (LPCTSTR pszKey, LPCTSTR defval);
46 void ReadChars (LPCTSTR pszKey, LPTSTR pData, DWORD dwLength, LPCTSTR defval);
49 HKEY m_hKey; /**< Open key (HKLM, HKCU, etc). */
50 String m_sPath; /**< Path to actual key to open. */