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
b5c358bb
Commit
b5c358bb
authored
Mar 07, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another attempt of a test for a visible desktop.
parent
08b250e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
Makefile.in
programs/winetest/Makefile.in
+1
-1
main.c
programs/winetest/main.c
+17
-1
No files found.
programs/winetest/Makefile.in
View file @
b5c358bb
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
winetest.exe
APPMODE
=
-mconsole
IMPORTS
=
comctl32 user32 wsock32
IMPORTS
=
comctl32 user32
gdi32
wsock32
C_SRCS
=
\
gui.c
\
...
...
programs/winetest/main.c
View file @
b5c358bb
...
...
@@ -68,7 +68,23 @@ static int running_under_wine ()
static
int
running_on_visible_desktop
()
{
return
IsWindowVisible
(
GetDesktopWindow
()
);
BOOL
visible
;
HWND
desktop
;
HDC
hdc
;
HRGN
hrgn
;
RECT
rc
;
desktop
=
GetDesktopWindow
();
hdc
=
GetDC
(
desktop
);
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
GetRandomRgn
(
hdc
,
hrgn
,
SYSRGN
);
visible
=
GetRgnBox
(
hrgn
,
&
rc
)
!=
NULLREGION
;
DeleteObject
(
hrgn
);
ReleaseDC
(
desktop
,
hdc
);
return
visible
;
}
void
print_version
()
...
...
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