Commit 53375d0f authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

dwmapi: Implement DwmIsCompositionEnabled.

parent 2698591a
......@@ -51,19 +51,20 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
*/
HRESULT WINAPI DwmIsCompositionEnabled(BOOL *enabled)
{
static int once;
if (!once)
{
FIXME("%p\n", enabled);
once = 1;
}
else
TRACE("%p\n", enabled);
OSVERSIONINFOW version;
TRACE("%p\n", enabled);
if (!enabled)
return E_INVALIDARG;
*enabled = FALSE;
version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
if (!GetVersionExW(&version))
*enabled = FALSE;
else
*enabled = (version.dwMajorVersion > 6 || (version.dwMajorVersion == 6 && version.dwMinorVersion >= 3));
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment