From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=57169 --- dlls/user32/user32.spec | 2 +- dlls/user32/win.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index d5a5bc0706f..0dd93d9fe6c 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -558,7 +558,7 @@ @ stdcall GetDlgItemTextA(long long ptr long) @ stdcall GetDlgItemTextW(long long ptr long) @ stdcall GetDoubleClickTime() NtUserGetDoubleClickTime -# @ stub GetDpiAwarenessContextForProcess +@ stdcall GetDpiAwarenessContextForProcess(ptr) @ stdcall GetDpiForMonitorInternal(long long ptr ptr) NtUserGetDpiForMonitor @ stdcall GetDpiForSystem() @ stdcall GetDpiForWindow(long) diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 7a552b48db4..2911529eb3e 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -615,6 +615,14 @@ DPI_AWARENESS_CONTEXT WINAPI GetWindowDpiAwarenessContext( HWND hwnd ) return LongToHandle( NtUserGetWindowDpiAwarenessContext( hwnd ) ); }
+/*********************************************************************** + * GetDpiAwarenessContextForProcess (USER32.@) + */ +DPI_AWARENESS_CONTEXT WINAPI GetDpiAwarenessContextForProcess(HANDLE process) +{ + FIXME("(%p): stub\n", process); + return DPI_AWARENESS_CONTEXT_UNAWARE; +}
/*********************************************************************** * GetWindowDpiHostingBehavior (USER32.@)
We could probably actually implement it?