tdf#77964 doc import: 0x1 placeholder is for AS_CHAR
[LibreOffice.git] / registry / inc / regapi.hxx
blobae5b7e119e4842459c1310934ff112a45440de4f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_REGISTRY_INC_REGAPI_HXX
21 #define INCLUDED_REGISTRY_INC_REGAPI_HXX
23 #include <rtl/ustring.h>
24 #include <registry/regtype.h>
25 #include <registry/regdllapi.h>
27 /** This function opens the specified key.
29 @param hKey identifies a currently open key. The key which will be opened by this function
30 is a subkey of the key identified by hKey
31 @param keyName points to a null terminated string specifying the name of a key.
32 @param phOpenKey points to a variable that receives the handle of the opened key.
33 The memory to store this variable will be allocated and will be freed by the function
34 reg_closeKey. If the function fails, phNewKey is NULL.
35 @return REG_NO_ERROR if succeeds else an error code.
37 REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openKey(RegKeyHandle hKey,
38 rtl_uString* keyName,
39 RegKeyHandle* phOpenKey);
42 /** This function closes the specified key.
44 @param hKey identifies a currently open key which will be closed by this function.
45 The memory of the variable specifying the key will be freed.
46 @return REG_NO_ERROR if succeeds else an error code.
48 REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_closeKey(RegKeyHandle hKey);
51 /** This function opens the root key of a registry.
53 @param hRegistry identifies a currently open registry whose rootKey will be returned.
54 @param phRootKey points to a handle of the open root key if the function succeeds otherwise NULL.
55 @return REG_NO_ERROR if succeeds else an error code.
57 REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openRootKey(RegHandle hRegistry,
58 RegKeyHandle* phRootKey);
61 /** This function opens a registry with the specified name. in readonly mode.
63 @param registryName points to a null terminated string specifying the name of the registry.
64 @param phRegistry points to a handle of the opened registry if the function succeeds otherwise NULL.
65 @return REG_NO_ERROR if succeeds else an error code.
67 REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openRegistry(rtl_uString* registryName,
68 RegHandle* phRegistry);
71 /** This function closes a registry.
73 @param hRegistry identifies a currently open registry which should be closed.
74 @return REG_NO_ERROR if succeeds else an error code.
76 REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_closeRegistry(RegHandle hRegistry);
79 /** This function reports the complete registry information of a key and all of its subkeys.
81 All information which are available (keynames, value types, values, ...)
82 will be printed to stdout for report issues only.
83 @param hKey identifies a currently open key which content will be reported.
84 @return REG_NO_ERROR if succeeds else an error code.
86 REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_dumpRegistry(RegKeyHandle hKey);
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */