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
4e752086
Commit
4e752086
authored
Mar 30, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement IsValidDpiAwarenessContext().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
daf7f3c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
0 deletions
+27
-0
sysparams.c
dlls/user32/sysparams.c
+11
-0
user32.spec
dlls/user32/user32.spec
+1
-0
windef.h
include/windef.h
+14
-0
winuser.h
include/winuser.h
+1
-0
No files found.
dlls/user32/sysparams.c
View file @
4e752086
...
@@ -2943,6 +2943,17 @@ BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
...
@@ -2943,6 +2943,17 @@ BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
}
}
/***********************************************************************
/***********************************************************************
* IsValidDpiAwarenessContext (USER32.@)
*/
BOOL
WINAPI
IsValidDpiAwarenessContext
(
DPI_AWARENESS_CONTEXT
context
)
{
return
(
context
==
DPI_AWARENESS_CONTEXT_UNAWARE
||
context
==
DPI_AWARENESS_CONTEXT_SYSTEM_AWARE
||
context
==
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE
||
context
==
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2
);
}
/***********************************************************************
* SetProcessDPIAware (USER32.@)
* SetProcessDPIAware (USER32.@)
*/
*/
BOOL
WINAPI
SetProcessDPIAware
(
void
)
BOOL
WINAPI
SetProcessDPIAware
(
void
)
...
...
dlls/user32/user32.spec
View file @
4e752086
...
@@ -460,6 +460,7 @@
...
@@ -460,6 +460,7 @@
@ stdcall IsRectEmpty(ptr)
@ stdcall IsRectEmpty(ptr)
# @ stub IsServerSideWindow
# @ stub IsServerSideWindow
@ stdcall IsTouchWindow(long ptr)
@ stdcall IsTouchWindow(long ptr)
@ stdcall IsValidDpiAwarenessContext(long)
@ stdcall IsWinEventHookInstalled(long)
@ stdcall IsWinEventHookInstalled(long)
@ stdcall IsWindow(long)
@ stdcall IsWindow(long)
@ stdcall IsWindowEnabled(long)
@ stdcall IsWindowEnabled(long)
...
...
include/windef.h
View file @
4e752086
...
@@ -433,6 +433,20 @@ typedef struct _RECTL
...
@@ -433,6 +433,20 @@ typedef struct _RECTL
typedef
const
RECTL
*
LPCRECTL
;
typedef
const
RECTL
*
LPCRECTL
;
/* DPI awareness */
typedef
enum
DPI_AWARENESS
{
DPI_AWARENESS_INVALID
=
-
1
,
DPI_AWARENESS_UNAWARE
=
0
,
DPI_AWARENESS_SYSTEM_AWARE
,
DPI_AWARENESS_PER_MONITOR_AWARE
}
DPI_AWARENESS
;
#define DPI_AWARENESS_CONTEXT_UNAWARE ((DPI_AWARENESS_CONTEXT)-1)
#define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE ((DPI_AWARENESS_CONTEXT)-2)
#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE ((DPI_AWARENESS_CONTEXT)-3)
#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((DPI_AWARENESS_CONTEXT)-4)
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
include/winuser.h
View file @
4e752086
...
@@ -3848,6 +3848,7 @@ WINUSERAPI BOOL WINAPI IsIconic(HWND);
...
@@ -3848,6 +3848,7 @@ WINUSERAPI BOOL WINAPI IsIconic(HWND);
WINUSERAPI
BOOL
WINAPI
IsMenu
(
HMENU
);
WINUSERAPI
BOOL
WINAPI
IsMenu
(
HMENU
);
WINUSERAPI
BOOL
WINAPI
IsProcessDPIAware
(
void
);
WINUSERAPI
BOOL
WINAPI
IsProcessDPIAware
(
void
);
WINUSERAPI
BOOL
WINAPI
IsTouchWindow
(
HWND
,
PULONG
);
WINUSERAPI
BOOL
WINAPI
IsTouchWindow
(
HWND
,
PULONG
);
WINUSERAPI
BOOL
WINAPI
IsValidDpiAwarenessContext
(
DPI_AWARENESS_CONTEXT
);
WINUSERAPI
BOOL
WINAPI
IsWinEventHookInstalled
(
DWORD
);
WINUSERAPI
BOOL
WINAPI
IsWinEventHookInstalled
(
DWORD
);
WINUSERAPI
BOOL
WINAPI
IsWindow
(
HWND
);
WINUSERAPI
BOOL
WINAPI
IsWindow
(
HWND
);
WINUSERAPI
BOOL
WINAPI
IsWindowEnabled
(
HWND
);
WINUSERAPI
BOOL
WINAPI
IsWindowEnabled
(
HWND
);
...
...
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