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
097df180
Commit
097df180
authored
Mar 14, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Special case Win9x platforms in the desktop visibility test, in Win98
GetUserObjectInformation is a stub returning ERROR_CALL_NOT_IMPLEMENTED.
parent
8528796c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
main.c
programs/winetest/main.c
+10
-5
No files found.
programs/winetest/main.c
View file @
097df180
...
...
@@ -69,21 +69,26 @@ static int running_under_wine ()
static
int
running_on_visible_desktop
()
{
FARPROC
pGetProcessWindowStation
=
GetProcAddress
(
GetModuleHandle
(
"user32.dll"
),
"GetProcessWindowStation"
);
HWND
desktop
;
HMODULE
huser32
=
GetModuleHandle
(
"user32.dll"
);
FARPROC
pGetProcessWindowStation
=
GetProcAddress
(
huser32
,
"GetProcessWindowStation"
);
FARPROC
pGetUserObjectInformationA
=
GetProcAddress
(
huser32
,
"GetUserObjectInformationA"
);
if
(
pGetProcessWindowStation
)
desktop
=
GetDesktopWindow
();
if
(
!
GetWindowLongPtrW
(
desktop
,
GWLP_WNDPROC
))
/* Win9x */
return
IsWindowVisible
(
desktop
);
if
(
pGetProcessWindowStation
&&
pGetUserObjectInformationA
)
{
DWORD
len
;
HWINSTA
wstation
;
USEROBJECTFLAGS
uoflags
;
FARPROC
pGetUserObjectInformationA
=
GetProcAddress
(
GetModuleHandle
(
"user32.dll"
),
"GetUserObjectInformationA"
);
wstation
=
(
HWINSTA
)
pGetProcessWindowStation
();
assert
(
pGetUserObjectInformationA
(
wstation
,
UOI_FLAGS
,
&
uoflags
,
sizeof
(
uoflags
),
&
len
));
return
(
uoflags
.
dwFlags
&
WSF_VISIBLE
)
!=
0
;
}
else
return
IsWindowVisible
(
GetDesktopWindow
());
return
IsWindowVisible
(
desktop
);
}
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