Debian Codegraph @

qmake/library/registry_p.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4 #ifndef QT_WINDOWS_REGISTRY_H
5 #define QT_WINDOWS_REGISTRY_H
6
7 //
8 // W A R N I N G
9 // -------------
10 //
11 // This file is not part of the Qt API. It exists purely as an
12 // implementation detail. This header file may change from version to
13 // version without notice, or even be removed.
14 //
15 // We mean it.
16 //
17
18 #include <QtCore/qglobal.h>
19
20 #ifdef Q_OS_WIN32
21 #include <QtCore/qt_windows.h>
22 #else
23 typedef void* HKEY;
24 #endif
25
26 #include <QtCore/qstring.h>
27
28 QT_BEGIN_NAMESPACE
29
30 /**
31 * Read a value from the Windows registry.
32 *
33 * If the key is not found, or the registry cannot be accessed (for example
34 * if this code is compiled for a platform other than Windows), a null
35 * string is returned.
36 *
37 * 32-bit code reads from the registry's 32 bit view (Wow6432Node),
38 * 64 bit code reads from the 64 bit view.
39 * Pass KEY_WOW64_32KEY to access the 32 bit view regardless of the
40 * application's architecture, KEY_WOW64_64KEY respectively.
41 */
42 QString qt_readRegistryKey(HKEY parentHandle, const QString &rSubkey,
43 unsigned long options = 0);
44
45 QT_END_NAMESPACE
46
47 #endif // QT_WINDOWS_REGISTRY_H
48