From 79916de39723c76a63775233ae8a17483d4d6b42 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 29 Mar 2018 15:01:22 +0200 Subject: [PATCH] user32: Add a stub for GetDpiForWindow(). Signed-off-by: Alexandre Julliard --- dlls/user32/sysparams.c | 9 +++++++++ dlls/user32/user32.spec | 1 + include/winuser.h | 1 + 3 files changed, 11 insertions(+) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index 454d58c2e2a..9467163dcbc 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -2955,6 +2955,15 @@ UINT WINAPI GetDpiForSystem(void) return display_dpi; } +/*********************************************************************** + * GetDpiForWindow (USER32.@) + */ +UINT WINAPI GetDpiForWindow( HWND hwnd ) +{ + FIXME( "stub: %p\n", hwnd ); + return GetDpiForSystem(); +} + /********************************************************************** * SetThreadDpiAwarenessContext (USER32.@) */ diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index 05bdae425d5..e0fdd3adca3 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -293,6 +293,7 @@ @ stdcall GetDlgItemTextW(long long ptr long) @ stdcall GetDoubleClickTime() @ stdcall GetDpiForSystem() +@ stdcall GetDpiForWindow(long) @ stdcall GetFocus() @ stdcall GetForegroundWindow() @ stdcall GetGestureConfig(long long long ptr ptr long) diff --git a/include/winuser.h b/include/winuser.h index 18a6e3a72da..ece01098da9 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -3675,6 +3675,7 @@ WINUSERAPI UINT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,INT); WINUSERAPI UINT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,INT); #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText) WINUSERAPI UINT WINAPI GetDoubleClickTime(void); +WINUSERAPI UINT WINAPI GetDpiForWindow(HWND); WINUSERAPI UINT WINAPI GetDpiForSystem(void); WINUSERAPI HWND WINAPI GetFocus(void); WINUSERAPI HWND WINAPI GetForegroundWindow(void);