Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
registry.cpp File Reference

(b1606e955548c620f2c810a9a34cd6fc91e245ae)

#include <QtCore/qstringlist.h>
#include "registry_p.h"
+ Include dependency graph for registry.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE QString qt_readRegistryKey (HKEY parentHandle, const QString &rSubkey, unsigned long options)
 

Function Documentation

◆ qt_readRegistryKey()

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.