Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qglobal.h>
#include <QtCore/qstring.h>
Go to the source code of this file.
Typedefs | |
typedef void * | HKEY |
Functions | |
QT_BEGIN_NAMESPACE QString | qt_readRegistryKey (HKEY parentHandle, const QString &rSubkey, unsigned long options=0) |
Definition at line 23 of file registry_p.h.
QT_BEGIN_NAMESPACE QString qt_readRegistryKey | ( | HKEY | parentHandle, |
const QString & | rSubkey, | ||
unsigned long | options = 0 ) |
Read a value from the Windows registry.
If the key is not found, or the registry cannot be accessed (for example if this code is compiled for a platform other than Windows), a null string is returned.
32-bit code reads from the registry's 32 bit view (Wow6432Node), 64 bit code reads from the 64 bit view. Pass KEY_WOW64_32KEY to access the 32 bit view regardless of the application's architecture, KEY_WOW64_64KEY respectively.
Definition at line 47 of file registry.cpp.