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_p.h File Reference

(b1606e955548c620f2c810a9a34cd6fc91e245ae)

#include <QtCore/qglobal.h>
#include <QtCore/qstring.h>
+ Include dependency graph for registry_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef voidHKEY
 

Functions

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

Typedef Documentation

◆ HKEY

typedef void* HKEY

Definition at line 23 of file registry_p.h.

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.