Alpha version 0.10.2: returned uxtheme.dll loading for Windows XP.

This commit is contained in:
John Preston 2016-08-15 01:53:47 +03:00
parent ac7064963d
commit 247b77c784

View file

@ -72,11 +72,11 @@ void start() {
load(LibShell32, "SHQueryUserNotificationState", SHQueryUserNotificationState);
load(LibShell32, "SetCurrentProcessExplicitAppUserModelID", SetCurrentProcessExplicitAppUserModelID);
auto version = QSysInfo::windowsVersion();
if (version >= QSysInfo::WV_VISTA) {
LibUxTheme = LoadLibrary(L"UXTHEME.DLL");
load(LibUxTheme, "SetWindowTheme", SetWindowTheme);
auto version = QSysInfo::windowsVersion();
if (version >= QSysInfo::WV_VISTA) {
LibWtsApi32 = LoadLibrary(L"WTSAPI32.DLL");
load(LibWtsApi32, "WTSRegisterSessionNotification", WTSRegisterSessionNotification);
load(LibWtsApi32, "WTSUnRegisterSessionNotification", WTSUnRegisterSessionNotification);