LibreOffice Module shell (master) 1
Macros | Functions
registry.cxx File Reference
#include <windows.h>
#include <malloc.h>
#include <registry.hxx>
#include <objbase.h>
Include dependency graph for registry.cxx:

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 

Functions

bool SetRegistryKey (HKEY RootKey, const Filepath_char_t *KeyName, const Filepath_char_t *ValueName, const Filepath_char_t *Value)
 Sets a value of the specified registry key, an empty ValueName sets the default value Returns true on success. More...
 
bool DeleteRegistryKey (HKEY RootKey, const Filepath_char_t *KeyName)
 Deletes the specified registry key and all of its subkeys Returns true on success. More...
 
bool HasSubkeysRegistryKey (HKEY RootKey, const Filepath_char_t *KeyName, bool &bResult)
 May be used to determine if the specified registry key has subkeys The function returns true on success else if an error occurs false. More...
 
Filepath_t ClsidToString (const CLSID &clsid)
 Converts a GUID to its string representation. More...
 
bool QueryRegistryKey (HKEY RootKey, const Filepath_char_t *KeyName, const Filepath_char_t *ValueName, Filepath_char_t *pszData, DWORD dwBufLen)
 Get the content of a specific key. More...
 

Macro Definition Documentation

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 22 of file registry.cxx.

Function Documentation

◆ ClsidToString()

Filepath_t ClsidToString ( const CLSID &  clsid)

Converts a GUID to its string representation.

Definition at line 135 of file registry.cxx.

◆ DeleteRegistryKey()

bool DeleteRegistryKey ( HKEY  RootKey,
const Filepath_char_t KeyName 
)

Deletes the specified registry key and all of its subkeys Returns true on success.

Definition at line 53 of file registry.cxx.

References DELETE, and DeleteRegistryKey().

Referenced by DeleteRegistryKey().

◆ HasSubkeysRegistryKey()

bool HasSubkeysRegistryKey ( HKEY  RootKey,
const Filepath_char_t KeyName,
bool &  bResult 
)

May be used to determine if the specified registry key has subkeys The function returns true on success else if an error occurs false.

Definition at line 115 of file registry.cxx.

References LONG.

◆ QueryRegistryKey()

bool QueryRegistryKey ( HKEY  RootKey,
const Filepath_char_t KeyName,
const Filepath_char_t ValueName,
Filepath_char_t pszData,
DWORD  dwBufLen 
)

Get the content of a specific key.

Definition at line 150 of file registry.cxx.

Referenced by getFileTypeInfo().

◆ SetRegistryKey()

bool SetRegistryKey ( HKEY  RootKey,
const Filepath_char_t KeyName,
const Filepath_char_t ValueName,
const Filepath_char_t Value 
)

Sets a value of the specified registry key, an empty ValueName sets the default value Returns true on success.

Definition at line 31 of file registry.cxx.

References Value.