ReactOS 0.4.15-dev-7958-gcd0bb1a
CReg Class Reference

#include <fbtreg.h>

Collaboration diagram for CReg:

Public Member Functions

 CReg (LPCSTR lpszSubKey, HKEY hRootKey=HKEY_CURRENT_USER, REGSAM regSam=KEY_ALL_ACCESS, BOOL bCreate=TRUE)
 
 ~CReg ()
 
BOOL GetValue (LPCSTR lpszValueName, LPVOID lpvData, DWORD *dwBuffSize=NULL, DWORD *dwDataType=NULL)
 
BOOL GetValue (LPCSTR lpszValueName, LPSTR lpszValue, DWORD dwBalueSize)
 
BOOL GetValue (LPCSTR lpszValueName, DWORD &dwData)
 
BOOL GetValue (LPCSTR lpszValueName, BOOL &bData)
 
BOOL SetValue (LPCSTR lpszValueName, const LPVOID lpvData, DWORD dwDataSize, DWORD dwDataType=REG_SZ)
 
BOOL SetValue (LPCSTR lpszValueName, LPCSTR lpszValue, DWORD dwDataSize=0, DWORD dwDataType=REG_SZ)
 
BOOL SetValue (LPCSTR lpszValueName, LPSTR lpszValue, DWORD dwValueSize)
 
BOOL SetValue (LPCSTR lpszValueName, DWORD dwData)
 
BOOL SetValue (LPCSTR lpszValueName, BOOL bData)
 
BOOL DeleteValue (LPCSTR lpszValueName)
 
BOOL DeleteValues ()
 
BOOL DeleteKey (LPCSTR lpszKeyName)
 
BOOL IsValid ()
 

Protected Member Functions

LONG Create (LPCSTR lpszSubKey, HKEY hRootKey, HKEY *hKey=NULL, REGSAM regSam=NULL)
 
LONG Open (LPCSTR lpszSubKey, HKEY hRootKey, HKEY *hKey=NULL, REGSAM regSam=NULL, BOOL bCreate=TRUE)
 
BOOL DeleteKey (HKEY hRootKey, HKEY hKey, LPCSTR szKey, LPCSTR szSubKey)
 

Protected Attributes

char m_szKey [1024]
 
HKEY m_hRootKey
 
HKEY m_hKey
 

Detailed Description

Definition at line 4 of file fbtreg.h.

Constructor & Destructor Documentation

◆ CReg()

CReg::CReg ( LPCSTR  lpszSubKey,
HKEY  hRootKey = HKEY_CURRENT_USER,
REGSAM  regSam = KEY_ALL_ACCESS,
BOOL  bCreate = TRUE 
)

◆ ~CReg()

CReg::~CReg ( )

Member Function Documentation

◆ Create()

LONG CReg::Create ( LPCSTR  lpszSubKey,
HKEY  hRootKey,
HKEY hKey = NULL,
REGSAM  regSam = NULL 
)
protected

◆ DeleteKey() [1/2]

BOOL CReg::DeleteKey ( HKEY  hRootKey,
HKEY  hKey,
LPCSTR  szKey,
LPCSTR  szSubKey 
)
protected

◆ DeleteKey() [2/2]

BOOL CReg::DeleteKey ( LPCSTR  lpszKeyName)

◆ DeleteValue()

BOOL CReg::DeleteValue ( LPCSTR  lpszValueName)

◆ DeleteValues()

BOOL CReg::DeleteValues ( )

◆ GetValue() [1/4]

BOOL CReg::GetValue ( LPCSTR  lpszValueName,
BOOL bData 
)

◆ GetValue() [2/4]

BOOL CReg::GetValue ( LPCSTR  lpszValueName,
DWORD dwData 
)

◆ GetValue() [3/4]

BOOL CReg::GetValue ( LPCSTR  lpszValueName,
LPSTR  lpszValue,
DWORD  dwBalueSize 
)

◆ GetValue() [4/4]

BOOL CReg::GetValue ( LPCSTR  lpszValueName,
LPVOID  lpvData,
DWORD dwBuffSize = NULL,
DWORD dwDataType = NULL 
)

◆ IsValid()

BOOL CReg::IsValid ( )
inline

Definition at line 40 of file fbtreg.h.

40{return m_hKey!=NULL;}
HKEY m_hKey
Definition: fbtreg.h:54
#define NULL
Definition: types.h:112

◆ Open()

LONG CReg::Open ( LPCSTR  lpszSubKey,
HKEY  hRootKey,
HKEY hKey = NULL,
REGSAM  regSam = NULL,
BOOL  bCreate = TRUE 
)
protected

◆ SetValue() [1/5]

BOOL CReg::SetValue ( LPCSTR  lpszValueName,
BOOL  bData 
)

◆ SetValue() [2/5]

BOOL CReg::SetValue ( LPCSTR  lpszValueName,
const LPVOID  lpvData,
DWORD  dwDataSize,
DWORD  dwDataType = REG_SZ 
)

◆ SetValue() [3/5]

BOOL CReg::SetValue ( LPCSTR  lpszValueName,
DWORD  dwData 
)

◆ SetValue() [4/5]

BOOL CReg::SetValue ( LPCSTR  lpszValueName,
LPCSTR  lpszValue,
DWORD  dwDataSize = 0,
DWORD  dwDataType = REG_SZ 
)

◆ SetValue() [5/5]

BOOL CReg::SetValue ( LPCSTR  lpszValueName,
LPSTR  lpszValue,
DWORD  dwValueSize 
)

Member Data Documentation

◆ m_hKey

HKEY CReg::m_hKey
protected

Definition at line 54 of file fbtreg.h.

Referenced by IsValid().

◆ m_hRootKey

HKEY CReg::m_hRootKey
protected

Definition at line 53 of file fbtreg.h.

◆ m_szKey

char CReg::m_szKey[1024]
protected

Definition at line 52 of file fbtreg.h.


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