Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
75414bb4
Commit
75414bb4
authored
Dec 17, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Make sure the tests run on NT4 again.
parent
53dae9b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
monitor.c
dlls/user32/tests/monitor.c
+10
-5
No files found.
dlls/user32/tests/monitor.c
View file @
75414bb4
...
...
@@ -27,6 +27,8 @@ static HMODULE hdll;
static
BOOL
(
WINAPI
*
pEnumDisplayDevicesA
)(
LPCSTR
,
DWORD
,
LPDISPLAY_DEVICEA
,
DWORD
);
static
BOOL
(
WINAPI
*
pEnumDisplayMonitors
)(
HDC
,
LPRECT
,
MONITORENUMPROC
,
LPARAM
);
static
BOOL
(
WINAPI
*
pGetMonitorInfoA
)(
HMONITOR
,
LPMONITORINFO
);
static
HMONITOR
(
WINAPI
*
pMonitorFromPoint
)(
POINT
,
DWORD
);
static
HMONITOR
(
WINAPI
*
pMonitorFromWindow
)(
HWND
,
DWORD
);
static
void
init_function_pointers
(
void
)
{
...
...
@@ -37,6 +39,8 @@ static void init_function_pointers(void)
pEnumDisplayDevicesA
=
(
void
*
)
GetProcAddress
(
hdll
,
"EnumDisplayDevicesA"
);
pEnumDisplayMonitors
=
(
void
*
)
GetProcAddress
(
hdll
,
"EnumDisplayMonitors"
);
pGetMonitorInfoA
=
(
void
*
)
GetProcAddress
(
hdll
,
"GetMonitorInfoA"
);
pMonitorFromPoint
=
(
void
*
)
GetProcAddress
(
hdll
,
"MonitorFromPoint"
);
pMonitorFromWindow
=
(
void
*
)
GetProcAddress
(
hdll
,
"MonitorFromWindow"
);
}
}
...
...
@@ -179,14 +183,14 @@ static void test_monitors(void)
POINT
pt
;
pt
.
x
=
pt
.
y
=
0
;
primary
=
MonitorFromPoint
(
pt
,
MONITOR_DEFAULTTOPRIMARY
);
primary
=
p
MonitorFromPoint
(
pt
,
MONITOR_DEFAULTTOPRIMARY
);
ok
(
primary
!=
0
,
"couldn't get primary monitor
\n
"
);
monitor
=
MonitorFromWindow
(
0
,
MONITOR_DEFAULTTONULL
);
monitor
=
p
MonitorFromWindow
(
0
,
MONITOR_DEFAULTTONULL
);
ok
(
!
monitor
,
"got %p, should not get a monitor for an invalid window
\n
"
,
monitor
);
monitor
=
MonitorFromWindow
(
0
,
MONITOR_DEFAULTTOPRIMARY
);
monitor
=
p
MonitorFromWindow
(
0
,
MONITOR_DEFAULTTOPRIMARY
);
ok
(
monitor
==
primary
,
"got %p, should get primary %p for MONITOR_DEFAULTTOPRIMARY
\n
"
,
monitor
,
primary
);
monitor
=
MonitorFromWindow
(
0
,
MONITOR_DEFAULTTONEAREST
);
monitor
=
p
MonitorFromWindow
(
0
,
MONITOR_DEFAULTTONEAREST
);
ok
(
monitor
==
primary
,
"got %p, should get primary %p for MONITOR_DEFAULTTONEAREST
\n
"
,
monitor
,
primary
);
}
...
...
@@ -197,5 +201,6 @@ START_TEST(monitor)
test_enumdisplaydevices
();
if
(
winetest_interactive
)
test_ChangeDisplaySettingsEx
();
test_monitors
();
if
(
pMonitorFromPoint
&&
pMonitorFromWindow
)
test_monitors
();
}
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