Windows NT 6.2 (Windows 8) not always DWM Enabled.
If user install an extension (for example LeoShell), the DWM is not always enabled.
Bad line:
win32_screen->always_composited = g_win32_check_windows_version (6, 2, 0, G_WIN32_OS_ANY);
Correct line:
win32_screen->always_composited = 0;
The features due to Microsoft spec (MSDN) shall always be checked by feature (in this case DwmIsCompositionEnabled
). Do not check features by GetVersion
or GetVersionEx
.
Remarks
Identifying the current operating system is usually not the best way to determine whether a particular operating system feature is present. This is because the operating system may have had new features added in a redistributable DLL. Rather than using GetVersionEx to determine the operating system platform or version number, test for the presence of the feature itself. For more information, see Operating System Version.