Commit 580bce7a authored by Jakob Eriksson's avatar Jakob Eriksson Committed by Alexandre Julliard

Add a check if we are running on a visible desktop. Credits to Dmitry

Timoshkov for the easy test.
parent 49f7f6c2
/*
* Wine Conformance Test EXE
*
* Copyright 2003 Jakob Eriksson (for Solid Form Sweden AB)
* Copyright 2003, 2004 Jakob Eriksson (for Solid Form Sweden AB)
* Copyright 2003 Dimitrie O. Paun
* Copyright 2003 Ferenc Wagner
*
......@@ -66,6 +66,11 @@ static int running_under_wine ()
return (GetProcAddress(module, "wine_server_call") != NULL);
}
static int running_on_visible_desktop ()
{
return GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE;
}
void print_version ()
{
OSVERSIONINFOEX ver;
......@@ -80,6 +85,7 @@ void print_version ()
}
xprintf (" bRunningUnderWine=%d\n", running_under_wine ());
xprintf (" bRunningOnVisibleDesktop=%d\n", running_on_visible_desktop ());
xprintf (" dwMajorVersion=%ld\n dwMinorVersion=%ld\n"
" dwBuildNumber=%ld\n PlatformId=%ld\n szCSDVersion=%s\n",
ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber,
......
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