From: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=57169 --- dlls/user32/user32.spec | 2 +- dlls/user32/win.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index 19183de58e2..8b99090afac 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..2443ea465c5 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -615,6 +615,13 @@ DPI_AWARENESS_CONTEXT WINAPI GetWindowDpiAwarenessContext( HWND hwnd ) return LongToHandle( NtUserGetWindowDpiAwarenessContext( hwnd ) ); } +/*********************************************************************** + * GetDpiAwarenessContextForProcess (USER32.@) + */ +DPI_AWARENESS_CONTEXT WINAPI GetDpiAwarenessContextForProcess(HANDLE process) +{ + return LongToHandle( NtUserGetProcessDpiAwarenessContext( process ) ); +} /*********************************************************************** * GetWindowDpiHostingBehavior (USER32.@) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6802