| | |
| | | #ifndef QWINDOWKIT_WINDOWS_H |
| | | #define QWINDOWKIT_WINDOWS_H |
| | | |
| | | #ifndef _USER32_ |
| | | # define _USER32_ |
| | | #endif |
| | | |
| | | #ifndef _DWMAPI_ |
| | | # define _DWMAPI_ |
| | | #endif |
| | | |
| | | #include <QtCore/qt_windows.h> |
| | | #include <QtCore/qglobal.h> |
| | | |
| | |
| | | |
| | | void close(); |
| | | QString stringValue(QStringView subKey) const; |
| | | QPair<DWORD, bool> dwordValue(QStringView subKey) const; |
| | | std::pair<DWORD, bool> dwordValue(QStringView subKey) const; |
| | | |
| | | private: |
| | | HKEY m_key; |
| | |
| | | : QWinRegistryKey(parentHandle, subKey, permissions, access) { |
| | | } |
| | | |
| | | inline QPair<DWORD, bool> dwordValue(QStringView subKey) const; |
| | | inline std::pair<DWORD, bool> dwordValue(QStringView subKey) const; |
| | | }; |
| | | |
| | | inline QPair<DWORD, bool> WindowsRegistryKey::dwordValue(QStringView subKey) const { |
| | | inline std::pair<DWORD, bool> WindowsRegistryKey::dwordValue(QStringView subKey) const { |
| | | const auto val = value<DWORD>(subKey); |
| | | if (!val) { |
| | | return {0, false}; |