| | |
| | | |
| | | static RTL_OSVERSIONINFOW GetRealOSVersionImpl() { |
| | | HMODULE hMod = ::GetModuleHandleW(L"ntdll.dll"); |
| | | Q_ASSERT(hMod); |
| | | using RtlGetVersionPtr = NTSTATUS(WINAPI *)(PRTL_OSVERSIONINFOW); |
| | | auto pRtlGetVersion = |
| | | reinterpret_cast<RtlGetVersionPtr>(::GetProcAddress(hMod, "RtlGetVersion")); |
| | | Q_ASSERT(pRtlGetVersion); |
| | | RTL_OSVERSIONINFOW rovi{}; |
| | | rovi.dwOSVersionInfoSize = sizeof(rovi); |
| | | pRtlGetVersion(&rovi); |
| | |
| | | reinterpret_cast<unsigned char *>(&value), &size) == ERROR_SUCCESS; |
| | | return qMakePair(value, ok); |
| | | } |
| | | #elif QT_VERSION < QT_VERSION_CHECK(6, 8, 1) |
| | | WindowsRegistryKey::WindowsRegistryKey(HKEY parentHandle, QStringView subKey, REGSAM permissions, REGSAM access) |
| | | : QWinRegistryKey(parentHandle, subKey, permissions, access) |
| | | { |
| | | } |
| | | #endif |
| | | |
| | | } |