Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
580bce7a
Commit
580bce7a
authored
Dec 22, 2004
by
Jakob Eriksson
Committed by
Alexandre Julliard
Dec 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a check if we are running on a visible desktop. Credits to Dmitry
Timoshkov for the easy test.
parent
49f7f6c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
main.c
programs/winetest/main.c
+7
-1
No files found.
programs/winetest/main.c
View file @
580bce7a
/*
* 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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment