#include <registry.h>
Public Member Functions | |
bool | ReadValue (int *pValue) |
bool | ReadValue (String *pValue) |
bool | ReadValue (unsigned *pValue) |
bool | ReadValue (bool *bValue) |
bool | ReadValue (LONGLONG *pValue) |
bool | ReadValue (ULONGLONG *pValue) |
operator int () | |
operator String () | |
bool | operator= (const int &value) |
bool | operator= (const TCHAR *ptszStr) |
bool | operator= (const String &str) |
template<class _Ty > | |
bool | WriteValue (_Ty *pValue) |
template<> | |
bool | WriteValue (LONGLONG *pValue) |
template<> | |
bool | WriteValue (ULONGLONG *pValue) |
bool | QueryValueEx (void *pBuffer, DWORD BufferSize, DWORD *dwRealSize=NULL, DWORD *pType=NULL) |
Queries a registry value independant from its type. | |
bool | SetValueEx (const void *pBuffer, DWORD BufferSize, DWORD dwType) |
bool | ReadToCharArray (TCHAR *ptszArray, DWORD SizeInBytes) |
DWORD | QueryType () |
Private Member Functions | |
accessor (RegistryKey *pKey, const TCHAR *pName) | |
accessor (const accessor &acc) | |
void | operator= (const accessor &acc) |
bool | _assign (const TCHAR *ptszStr, unsigned count=0) |
Private Attributes | |
const TCHAR * | m_pName |
RegistryKey * | m_pKey |
Friends | |
class | RegistryKey |
The RegistryKey::accessor class SHOULD NOT be used explicitly. The only correct usage is when such temporary object is returned from RegistryKey::operator[]().
In that case optimizer prevents the object from being physically stored in stack. Instead, the key and value name pointers are directly passed to corresponding functions.
To see how it works, you should compile the SAMPLES\WINDOWS\REGISTRY sample program in Release configuration, and disassemble it.
All methods/operators are divided into the following groups:
BazisLib::Win32::RegistryKey::accessor::accessor | ( | RegistryKey * | pKey, | |
const TCHAR * | pName | |||
) | [inline, private] |
BazisLib::Win32::RegistryKey::accessor::accessor | ( | const accessor & | acc | ) | [inline, private] |
bool BazisLib::Win32::RegistryKey::accessor::_assign | ( | const TCHAR * | ptszStr, | |
unsigned | count = 0 | |||
) | [inline, private] |
BazisLib::Win32::RegistryKey::accessor::operator int | ( | ) | [inline] |
BazisLib::Win32::RegistryKey::accessor::operator String | ( | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::operator= | ( | const String & | str | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::operator= | ( | const TCHAR * | ptszStr | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::operator= | ( | const int & | value | ) | [inline] |
void BazisLib::Win32::RegistryKey::accessor::operator= | ( | const accessor & | acc | ) | [inline, private] |
DWORD BazisLib::Win32::RegistryKey::accessor::QueryType | ( | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::QueryValueEx | ( | void * | pBuffer, | |
DWORD | BufferSize, | |||
DWORD * | dwRealSize = NULL , |
|||
DWORD * | pType = NULL | |||
) | [inline] |
Queries a registry value independant from its type.
bool BazisLib::Win32::RegistryKey::accessor::ReadToCharArray | ( | TCHAR * | ptszArray, | |
DWORD | SizeInBytes | |||
) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::ReadValue | ( | ULONGLONG * | pValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::ReadValue | ( | LONGLONG * | pValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::ReadValue | ( | bool * | bValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::ReadValue | ( | unsigned * | pValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::ReadValue | ( | String * | pValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::ReadValue | ( | int * | pValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::SetValueEx | ( | const void * | pBuffer, | |
DWORD | BufferSize, | |||
DWORD | dwType | |||
) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::WriteValue | ( | ULONGLONG * | pValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::WriteValue | ( | LONGLONG * | pValue | ) | [inline] |
bool BazisLib::Win32::RegistryKey::accessor::WriteValue | ( | _Ty * | pValue | ) | [inline] |
friend class RegistryKey [friend] |
const TCHAR* BazisLib::Win32::RegistryKey::accessor::m_pName [private] |