45 if (pReg && pReg->
release() == 0)
63 rtl_uString_new(
pName);
68 rtl_uString_new(
pName);
89 *phRegistry =
nullptr;
128 *phRegistry =
nullptr;
164 rtl_uString* registryName)
175 if (!registryName->length)
266 *phRegistry =
nullptr;
293 pKey =
static_cast<ORegKey*
>(hKey);
ORegistry * getRegistry() const
RegError initRegistry(const OUString &name, RegAccessMode accessMode, bool bCreate=false)
RegError dumpRegistry(RegKeyHandle hKey) const
const OUString & getName() const
RegError destroyRegistry(const OUString &name)
RegError REGISTRY_CALLTYPE reg_dumpRegistry(RegKeyHandle hKey)
This function reports the complete registry information of a key and all of its subkeys.
RegError REGISTRY_CALLTYPE reg_openRegistry(rtl_uString *registryName, RegHandle *phRegistry)
This function opens a registry with the specified name.
Registry_Api *REGISTRY_CALLTYPE initRegistry_Api()
the API initialization function.
static RegError REGISTRY_CALLTYPE closeRegistry(RegHandle hReg)
static RegError REGISTRY_CALLTYPE createRegistry(rtl_uString *registryName, RegHandle *phRegistry)
static sal_Bool REGISTRY_CALLTYPE isReadOnly(RegHandle hReg)
static RegError REGISTRY_CALLTYPE openRootKey(RegHandle hReg, RegKeyHandle *phRootKey)
static RegError REGISTRY_CALLTYPE openRegistry(rtl_uString *registryName, RegHandle *phRegistry, RegAccessMode accessMode)
static void REGISTRY_CALLTYPE acquire(RegHandle hReg)
RegError REGISTRY_CALLTYPE reg_openRootKey(RegHandle hRegistry, RegKeyHandle *phRootKey)
This function opens the root key of a registry.
RegError REGISTRY_CALLTYPE reg_closeRegistry(RegHandle hRegistry)
This function closes a registry.
static void REGISTRY_CALLTYPE release(RegHandle hReg)
static RegError REGISTRY_CALLTYPE getName(RegHandle hReg, rtl_uString **pName)
static RegError REGISTRY_CALLTYPE destroyRegistry(RegHandle hReg, rtl_uString *registryName)
static RegError REGISTRY_CALLTYPE dumpRegistry(RegHandle hReg, RegKeyHandle hKey)
RegError REGISTRY_CALLTYPE setUnicodeListValue(RegKeyHandle hKey, rtl_uString *keyName, sal_Unicode **pValueList, sal_uInt32 len)
RegError REGISTRY_CALLTYPE setLongListValue(RegKeyHandle hKey, rtl_uString *keyName, sal_Int32 const *pValueList, sal_uInt32 len)
RegError REGISTRY_CALLTYPE createKey(RegKeyHandle hKey, rtl_uString *keyName, RegKeyHandle *phNewKey)
RegError REGISTRY_CALLTYPE setStringListValue(RegKeyHandle hKey, rtl_uString *keyName, char **pValueList, sal_uInt32 len)
void REGISTRY_CALLTYPE acquireKey(RegKeyHandle hKey)
RegError REGISTRY_CALLTYPE getValueInfo(RegKeyHandle hKey, rtl_uString *keyName, RegValueType *pValueType, sal_uInt32 *pValueSize)
RegError REGISTRY_CALLTYPE getStringListValue(RegKeyHandle hKey, rtl_uString *keyName, char ***pValueList, sal_uInt32 *pLen)
void REGISTRY_CALLTYPE releaseKey(RegKeyHandle hKey)
RegError REGISTRY_CALLTYPE getKeyNames(RegKeyHandle hKey, rtl_uString *keyName, rtl_uString ***pSubKeyNames, sal_uInt32 *pnSubKeys)
RegError REGISTRY_CALLTYPE getLongListValue(RegKeyHandle hKey, rtl_uString *keyName, sal_Int32 **pValueList, sal_uInt32 *pLen)
RegError REGISTRY_CALLTYPE getKeyName(RegKeyHandle hKey, rtl_uString **pKeyName)
RegError REGISTRY_CALLTYPE deleteKey(RegKeyHandle hKey, rtl_uString *keyName)
RegError REGISTRY_CALLTYPE getResolvedKeyName(RegKeyHandle hKey, rtl_uString *keyName, SAL_UNUSED_PARAMETER sal_Bool, rtl_uString **pResolvedName)
RegError REGISTRY_CALLTYPE closeSubKeys(RegKeyHandle *phSubKeys, sal_uInt32 nSubKeys)
RegError REGISTRY_CALLTYPE freeKeyNames(rtl_uString **pKeyNames, sal_uInt32 nKeys)
RegError REGISTRY_CALLTYPE freeValueList(RegValueType valueType, RegValue pValueList, sal_uInt32 len)
sal_Bool REGISTRY_CALLTYPE isKeyReadOnly(RegKeyHandle hKey)
RegError REGISTRY_CALLTYPE openKey(RegKeyHandle hKey, rtl_uString *keyName, RegKeyHandle *phOpenKey)
RegError REGISTRY_CALLTYPE openSubKeys(RegKeyHandle hKey, rtl_uString *keyName, RegKeyHandle **pphSubKeys, sal_uInt32 *pnSubKeys)
RegError REGISTRY_CALLTYPE closeKey(RegKeyHandle hKey)
RegError REGISTRY_CALLTYPE getValue(RegKeyHandle hKey, rtl_uString *keyName, RegValue pValue)
RegError REGISTRY_CALLTYPE getUnicodeListValue(RegKeyHandle hKey, rtl_uString *keyName, sal_Unicode ***pValueList, sal_uInt32 *pLen)
RegError REGISTRY_CALLTYPE setValue(RegKeyHandle hKey, rtl_uString *keyName, RegValueType valueType, RegValue pData, sal_uInt32 valueSize)
void * RegHandle
defines the type of a registry handle used in the C API.
INVALID_REGISTRY
registry is in an invalid state or the registry does not point to a valid registry data file.
void * RegKeyHandle
defines the type of a registry key handle used in the C API.
REGISTRY_NOT_OPEN
registry is not open.
INVALID_KEY
the key is not in a valid state.
RegAccessMode
defines the open/access mode of the registry.
@ READWRITE
This mode allows readonly access.
#define REGISTRY_CALLTYPE
specify the calling convention for the registry API
enum SAL_DLLPUBLIC_RTTI RegError
specifies the possible error codes which can occur using the registry API.
specifies a collection of function pointers which represents the complete registry C-API.