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

void REGISTRY_CALLTYPE acquireKey ( RegKeyHandle  hKey)

Definition at line 30 of file regkey.cxx.

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

Referenced by initRegistry_Api().

Definition at line 182 of file regkey.cxx.

References ORegKey::closeKey(), and INVALID_KEY.

Referenced by initRegistry_Api(), and reg_closeKey().

RegError REGISTRY_CALLTYPE closeSubKeys ( RegKeyHandle phSubKeys,
sal_uInt32  nSubKeys 
)

Definition at line 144 of file regkey.cxx.

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

Referenced by initRegistry_Api().

RegError REGISTRY_CALLTYPE createKey ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegKeyHandle phNewKey 
)
RegError REGISTRY_CALLTYPE deleteKey ( RegKeyHandle  hKey,
rtl_uString *  keyName 
)
RegError REGISTRY_CALLTYPE freeKeyNames ( rtl_uString **  pKeyNames,
sal_uInt32  nKeys 
)

Definition at line 653 of file regkey.cxx.

References i, and NO_ERROR.

Referenced by initRegistry_Api().

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

Definition at line 569 of file regkey.cxx.

References i, INVALID_VALUE, LONGLIST, NO_ERROR, and STRINGLIST.

Referenced by initRegistry_Api().

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

Definition at line 65 of file regkey.cxx.

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

Referenced by initRegistry_Api().

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

Definition at line 635 of file regkey.cxx.

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

Referenced by initRegistry_Api().

RegError REGISTRY_CALLTYPE getLongListValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
sal_Int32 **  pValueList,
sal_uInt32 *  pLen 
)
RegError REGISTRY_CALLTYPE getResolvedKeyName ( RegKeyHandle  hKey,
rtl_uString *  keyName,
SAL_UNUSED_PARAMETER  sal_Bool,
rtl_uString **  pResolvedName 
)

Definition at line 613 of file regkey.cxx.

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

Referenced by initRegistry_Api().

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 getValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegValue  pValue 
)
RegError REGISTRY_CALLTYPE getValueInfo ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegValueType pValueType,
sal_uInt32 *  pValueSize 
)
sal_Bool REGISTRY_CALLTYPE isKeyReadOnly ( RegKeyHandle  hKey)

Definition at line 56 of file regkey.cxx.

References ORegKey::isReadOnly().

Referenced by initRegistry_Api().

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

Definition at line 104 of file regkey.cxx.

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

Referenced by initRegistry_Api(), and reg_openKey().

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

Definition at line 123 of file regkey.cxx.

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

Referenced by initRegistry_Api().

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 685 of file regkey.cxx.

References closeKey(), and INVALID_KEY.

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 672 of file regkey.cxx.

References INVALID_KEY, and openKey().

void REGISTRY_CALLTYPE releaseKey ( RegKeyHandle  hKey)

Definition at line 43 of file regkey.cxx.

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

Referenced by initRegistry_Api().

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 setValue ( RegKeyHandle  hKey,
rtl_uString *  keyName,
RegValueType  valueType,
RegValue  pData,
sal_uInt32  valueSize 
)