#include <registry.h>
Inheritance diagram for RegistryEntry:
Public Member Functions | |
virtual | ~RegistryEntry () |
virtual BOOL | GetValue (const StringBase &ValueName, StringBase *const pValue) |
Returns a value with the given name under this registry key. | |
virtual BOOL | GetEmbeddedEntry (const StringBase &Name, RegistryEntry *const pEntry) const |
Returns a "subkey" of the given entry. | |
Protected Member Functions | |
RegistryEntry (HKEY hKey=0) | |
RegistryEntry (const RegistryEntry &) | |
Protected Attributes | |
HKEY | m_hKey |
See Also: ClassRegistryEntry
Definition at line 276 of file registry.h.
|
Definition at line 387 of file registry.h. 00388 { 00389 CloseRegKey(m_hKey); 00390 }
|
|
Definition at line 285 of file registry.h. 00285 : m_hKey(hKey) {}
|
|
Definition at line 392 of file registry.h. 00393 { 00394 TRACE( _T("RegistryEntry - Copy constructor not implemented\n")); 00395 }
|
|
Returns a "subkey" of the given entry.
Definition at line 1414 of file registry.cpp. 01415 { 01416 pEntry->m_hKey = OpenRegKey(m_hKey, Name); 01417 01418 return (pEntry->m_hKey != NULL); 01419 }
|
|
Returns a value with the given name under this registry key.
Definition at line 1439 of file registry.cpp. 01440 { 01441 ERROR2IF(pValue == NULL, FALSE, "NULL Args"); 01442 01443 DWORD dwType = REG_SZ, dwSize = pValue->MaxLength(); 01444 01445 return (::RegQueryValueEx(m_hKey, ValueName, NULL, &dwType, (LPBYTE)((LPTSTR)*pValue), &dwSize) == 01446 ERROR_SUCCESS) && dwType == REG_SZ && dwSize <= DWORD(pValue->MaxLength()); 01447 }
|
|
Definition at line 290 of file registry.h. |