1#ifndef __DCL_REGISTRY_H__
2#define __DCL_REGISTRY_H__ 20080607
4#ifndef __DCL_CONFIG_H__
5#include <dcl/_Config.h>
10#ifndef __DCL_OBJECT_H__
13#ifndef __DCL_EXCEPTION_H__
16#ifndef __DCL_STRING_H__
22#if __DCL_HAVE_THIS_FILE__
24 static const char_t __szWinRegistry_h__[] =
__T(
"dcl/Registry.h");
25 #define __THIS_FILE__ __szWinRegistry_h__
38 Registry(HKEY hParentKey);
43 REGSAM samDesired = KEY_READ
48 void create(
const String& strKey, REGSAM samDesired = KEY_ALL_ACCESS)
51 void open(
const String& strKey, REGSAM samDesired = KEY_ALL_ACCESS)
57 String getString(
const String& strName)
60 int getInteger(
const String& strName)
63 void setValue(
const String& strName,
const String& strValue)
66 void setValue(
const String& strName,
int nValue);
69 HKEY parentKey()
const;
72 const String& keyName()
const;
74 bool existsValue(
const String& strName);
75 bool existsSubKey(
const String& strKey)
const;
76 static bool existsKey(
const String& strKeyName, HKEY hParentKey);
87inline HKEY Registry::parentKey()
const
92inline HKEY Registry::key()
const
98inline REGSAM Registry::sam()
const
104inline const String& Registry::keyName()
const
110inline bool Registry::opened()
const
115inline bool Registry::existsSubKey(
const String& strKey)
const
117 return Registry::existsKey(strKey,
__hKey);
120#if __DCL_HAVE_THIS_FILE__
122 #define __THIS_FILE__ __T(__FILE__)
#define DECLARE_CLASSINFO(class_name)
#define __DCL_ASSERT(expr)
__DCL_BEGIN_NAMESPACE struct _REGISTRY_DATAINFO REGISTRY_DATAINFO
LONG getDataInfo(const String &strName, REGISTRY_DATAINFO &info)