LibreOffice Module registry (master) 1
Functions
regkey.cxx File Reference
#include "regkey.hxx"
#include <osl/diagnose.h>
#include "regimpl.hxx"
#include "keyimpl.hxx"
Include dependency graph for regkey.cxx:

Go to the source code of this file.

Functions

void REGISTRY_CALLTYPE acquireKey (RegKeyHandle hKey)
 
void REGISTRY_CALLTYPE releaseKey (RegKeyHandle hKey)
 
sal_Bool REGISTRY_CALLTYPE isKeyReadOnly (RegKeyHandle hKey)
 
RegError REGISTRY_CALLTYPE getKeyName (RegKeyHandle hKey, rtl_uString **pKeyName)
 
RegError REGISTRY_CALLTYPE createKey (RegKeyHandle hKey, rtl_uString *keyName, RegKeyHandle *phNewKey)
 
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 closeSubKeys (RegKeyHandle *phSubKeys, sal_uInt32 nSubKeys)
 
RegError REGISTRY_CALLTYPE deleteKey (RegKeyHandle hKey, rtl_uString *keyName)
 
RegError REGISTRY_CALLTYPE closeKey (RegKeyHandle hKey)
 
RegError REGISTRY_CALLTYPE setValue (RegKeyHandle hKey, rtl_uString *keyName, RegValueType valueType, RegValue pData, sal_uInt32 valueSize)
 
RegError REGISTRY_CALLTYPE setLongListValue (RegKeyHandle hKey, rtl_uString *keyName, sal_Int32 const *pValueList, sal_uInt32 len)
 
RegError REGISTRY_CALLTYPE setStringListValue (RegKeyHandle hKey, rtl_uString *keyName, char **pValueList, sal_uInt32 len)
 
RegError REGISTRY_CALLTYPE setUnicodeListValue (RegKeyHandle hKey, rtl_uString *keyName, sal_Unicode **pValueList, sal_uInt32 len)
 
RegError REGISTRY_CALLTYPE getValueInfo (RegKeyHandle hKey, rtl_uString *keyName, RegValueType *pValueType, sal_uInt32 *pValueSize)
 
RegError REGISTRY_CALLTYPE getValue (RegKeyHandle hKey, rtl_uString *keyName, RegValue pValue)
 
RegError REGISTRY_CALLTYPE getLongListValue (RegKeyHandle hKey, rtl_uString *keyName, sal_Int32 **pValueList, sal_uInt32 *pLen)
 
RegError REGISTRY_CALLTYPE getStringListValue (RegKeyHandle hKey, rtl_uString *keyName, char ***pValueList, sal_uInt32 *pLen)
 
RegError REGISTRY_CALLTYPE getUnicodeListValue (RegKeyHandle hKey, rtl_uString *keyName, sal_Unicode ***pValueList, sal_uInt32 *pLen)
 
RegError REGISTRY_CALLTYPE freeValueList (RegValueType valueType, RegValue pValueList, sal_uInt32 len)
 
RegError REGISTRY_CALLTYPE getResolvedKeyName (RegKeyHandle hKey, rtl_uString *keyName, SAL_UNUSED_PARAMETER sal_Bool, rtl_uString **pResolvedName)
 
RegError REGISTRY_CALLTYPE getKeyNames (RegKeyHandle hKey, rtl_uString *keyName, rtl_uString ***pSubKeyNames, sal_uInt32 *pnSubKeys)
 
RegError REGISTRY_CALLTYPE freeKeyNames (rtl_uString **pKeyNames, sal_uInt32 nKeys)
 
RegError REGISTRY_CALLTYPE reg_openKey (RegKeyHandle hKey, rtl_uString *keyName, RegKeyHandle *phOpenKey)
 This function opens the specified key. More...
 
RegError REGISTRY_CALLTYPE reg_closeKey (RegKeyHandle hKey)
 This function closes the specified key. More...
 

Function Documentation

◆ acquireKey()

void REGISTRY_CALLTYPE acquireKey ( RegKeyHandle  hKey)

Definition at line 27 of file regkey.cxx.

References ORegistry::acquireKey(), and ORegKey::getRegistry().

Referenced by initRegistry_Api().

◆ closeKey()

Definition at line 152 of file regkey.cxx.

References ORegKey::closeKey(), and INVALID_KEY.

Referenced by initRegistry_Api(), and reg_closeKey().

◆ closeSubKeys()

RegError REGISTRY_CALLTYPE closeSubKeys ( RegKeyHandle phSubKeys,
sal_uInt32  nSubKeys 
)

Definition at line 120 of file regkey.cxx.

References ORegistry::closeKey(), i, INVALID_KEY, and NO_ERROR.

Referenced by initRegistry_Api().

◆ createKey()

RegError REGISTRY_CALLTYPE createKey ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegKeyHandle phNewKey 
)

◆ deleteKey()

RegError REGISTRY_CALLTYPE deleteKey ( RegKeyHandle  hKey,
rtl_uString *  keyName 
)

◆ freeKeyNames()

RegError REGISTRY_CALLTYPE freeKeyNames ( rtl_uString **  pKeyNames,
sal_uInt32  nKeys 
)

Definition at line 586 of file regkey.cxx.

References i, and NO_ERROR.

Referenced by initRegistry_Api().

◆ freeValueList()

RegError REGISTRY_CALLTYPE freeValueList ( RegValueType  valueType,
RegValue  pValueList,
sal_uInt32  len 
)

Definition at line 511 of file regkey.cxx.

References i, LONGLIST, NO_ERROR, and STRINGLIST.

Referenced by initRegistry_Api().

◆ getKeyName()

RegError REGISTRY_CALLTYPE getKeyName ( RegKeyHandle  hKey,
rtl_uString **  pKeyName 
)

Definition at line 53 of file regkey.cxx.

References ORegKey::getName(), INVALID_KEY, and NO_ERROR.

Referenced by initRegistry_Api().

◆ getKeyNames()

RegError REGISTRY_CALLTYPE getKeyNames ( RegKeyHandle  hKey,
rtl_uString *  keyName,
rtl_uString ***  pSubKeyNames,
sal_uInt32 *  pnSubKeys 
)

Definition at line 571 of file regkey.cxx.

References ORegKey::getKeyNames(), INVALID_KEY, and ORegKey::isDeleted().

Referenced by initRegistry_Api().

◆ getLongListValue()

RegError REGISTRY_CALLTYPE getLongListValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
sal_Int32 **  pValueList,
sal_uInt32 *  pLen 
)

◆ getResolvedKeyName()

RegError REGISTRY_CALLTYPE getResolvedKeyName ( RegKeyHandle  hKey,
rtl_uString *  keyName,
SAL_UNUSED_PARAMETER  sal_Bool,
rtl_uString **  pResolvedName 
)

Definition at line 552 of file regkey.cxx.

References ORegKey::getResolvedKeyName(), INVALID_KEY, ORegKey::isDeleted(), NO_ERROR, and RegError.

Referenced by initRegistry_Api().

◆ getStringListValue()

RegError REGISTRY_CALLTYPE getStringListValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
char ***  pValueList,
sal_uInt32 *  pLen 
)

◆ getUnicodeListValue()

RegError REGISTRY_CALLTYPE getUnicodeListValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
sal_Unicode ***  pValueList,
sal_uInt32 *  pLen 
)

◆ getValue()

RegError REGISTRY_CALLTYPE getValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegValue  pValue 
)

◆ getValueInfo()

RegError REGISTRY_CALLTYPE getValueInfo ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegValueType pValueType,
sal_uInt32 *  pValueSize 
)

◆ isKeyReadOnly()

sal_Bool REGISTRY_CALLTYPE isKeyReadOnly ( RegKeyHandle  hKey)

Definition at line 47 of file regkey.cxx.

References ORegKey::isReadOnly().

Referenced by initRegistry_Api().

◆ openKey()

RegError REGISTRY_CALLTYPE openKey ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegKeyHandle phOpenKey 
)

Definition at line 86 of file regkey.cxx.

References INVALID_KEY, ORegKey::isDeleted(), and ORegKey::openKey().

Referenced by initRegistry_Api(), and reg_openKey().

◆ openSubKeys()

RegError REGISTRY_CALLTYPE openSubKeys ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegKeyHandle **  pphSubKeys,
sal_uInt32 *  pnSubKeys 
)

Definition at line 102 of file regkey.cxx.

References INVALID_KEY, ORegKey::isDeleted(), and ORegKey::openSubKeys().

Referenced by initRegistry_Api().

◆ reg_closeKey()

RegError REGISTRY_CALLTYPE reg_closeKey ( RegKeyHandle  hKey)

This function closes the specified key.

Parameters
hKeyidentifies a currently open key which will be closed by this function. The memory of the variable specifying the key will be freed.
Returns
REG_NO_ERROR if succeeds else an error code.

Definition at line 609 of file regkey.cxx.

References closeKey(), and INVALID_KEY.

◆ reg_openKey()

RegError REGISTRY_CALLTYPE reg_openKey ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegKeyHandle phOpenKey 
)

This function opens the specified key.

Parameters
hKeyidentifies a currently open key. The key which will be opened by this function is a subkey of the key identified by hKey
keyNamepoints to a null terminated string specifying the name of a key.
phOpenKeypoints to a variable that receives the handle of the opened key. The memory to store this variable will be allocated and will be freed by the function reg_closeKey. If the function fails, phNewKey is NULL.
Returns
REG_NO_ERROR if succeeds else an error code.

Definition at line 599 of file regkey.cxx.

References INVALID_KEY, and openKey().

◆ releaseKey()

void REGISTRY_CALLTYPE releaseKey ( RegKeyHandle  hKey)

Definition at line 37 of file regkey.cxx.

References ORegKey::getRegistry(), and ORegistry::releaseKey().

Referenced by initRegistry_Api().

◆ setLongListValue()

RegError REGISTRY_CALLTYPE setLongListValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
sal_Int32 const *  pValueList,
sal_uInt32  len 
)

◆ setStringListValue()

RegError REGISTRY_CALLTYPE setStringListValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
char **  pValueList,
sal_uInt32  len 
)

◆ setUnicodeListValue()

RegError REGISTRY_CALLTYPE setUnicodeListValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
sal_Unicode **  pValueList,
sal_uInt32  len 
)

◆ setValue()

RegError REGISTRY_CALLTYPE setValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegValueType  valueType,
RegValue  pData,
sal_uInt32  valueSize 
)