LibreOffice Module shell (master) 1
registry.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SHELL_INC_INTERNAL_REGISTRY_HXX
21#define INCLUDED_SHELL_INC_INTERNAL_REGISTRY_HXX
22
23
24// registry helper functions
25
26
27#include <objbase.h>
28#include <string>
29#include "filepath.hxx"
30
35bool SetRegistryKey(HKEY RootKey, const Filepath_char_t* KeyName, const Filepath_char_t* ValueName, const Filepath_char_t* Value);
36
40bool DeleteRegistryKey(HKEY RootKey, const Filepath_char_t* KeyName);
41
45bool HasSubkeysRegistryKey(HKEY RootKey, const Filepath_char_t* KeyName, bool& bResult);
46
49Filepath_t ClsidToString(const CLSID& clsid);
50
53bool QueryRegistryKey(HKEY RootKey, const Filepath_char_t* KeyName, const Filepath_char_t* ValueName, Filepath_char_t *pszData, DWORD dwBufLen);
54
55
56#endif
57
58/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
char Filepath_char_t
Definition: filepath.hxx:21
std::string Filepath_t
Definition: filepath.hxx:22
Filepath_t ClsidToString(const CLSID &clsid)
Converts a GUID to its string representation.
Definition: registry.cxx:135
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 succe...
Definition: registry.cxx:115
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: registry.cxx:150
bool DeleteRegistryKey(HKEY RootKey, const Filepath_char_t *KeyName)
Deletes the specified registry key and all of its subkeys Returns true on success.
Definition: registry.cxx:53
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...
Definition: registry.cxx:31