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
7a7dd500
Commit
7a7dd500
authored
Apr 11, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shcore: Implement Get/SetProcessDpiAwareness().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da2551f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
main.c
dlls/shcore/main.c
+4
-5
shellscalingapi.h
include/shellscalingapi.h
+4
-0
No files found.
dlls/shcore/main.c
View file @
7a7dd500
...
...
@@ -46,15 +46,14 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
HRESULT
WINAPI
GetProcessDpiAwareness
(
HANDLE
process
,
PROCESS_DPI_AWARENESS
*
value
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
process
,
value
);
if
(
value
)
*
value
=
PROCESS_DPI_UNAWARE
;
return
S_OK
;
if
(
GetProcessDpiAwarenessInternal
(
process
,
(
DPI_AWARENESS
*
)
value
))
return
S_OK
;
return
HRESULT_FROM_WIN32
(
GetLastError
()
);
}
HRESULT
WINAPI
SetProcessDpiAwareness
(
PROCESS_DPI_AWARENESS
value
)
{
FIXME
(
"(%u): stub
\n
"
,
value
)
;
return
E_NOTIMPL
;
if
(
SetProcessDpiAwarenessInternal
(
value
))
return
S_OK
;
return
HRESULT_FROM_WIN32
(
GetLastError
()
)
;
}
HRESULT
WINAPI
GetDpiForMonitor
(
HMONITOR
monitor
,
MONITOR_DPI_TYPE
type
,
UINT
*
x
,
UINT
*
y
)
...
...
include/shellscalingapi.h
View file @
7a7dd500
...
...
@@ -34,4 +34,8 @@ typedef enum PROCESS_DPI_AWARENESS
PROCESS_PER_MONITOR_DPI_AWARE
}
PROCESS_DPI_AWARENESS
;
HRESULT
WINAPI
GetDpiForMonitor
(
HMONITOR
,
MONITOR_DPI_TYPE
,
UINT
*
,
UINT
*
);
HRESULT
WINAPI
GetProcessDpiAwareness
(
HANDLE
,
PROCESS_DPI_AWARENESS
*
);
HRESULT
WINAPI
SetProcessDpiAwareness
(
PROCESS_DPI_AWARENESS
);
#endif
/* __WINE_SHELLSCALINGAPI_H */
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