From 40b46d900a60e5a4011f0004fd939dfc7dba735a Mon Sep 17 00:00:00 2001 From: Louis Lenders Date: Mon, 26 Mar 2018 19:27:08 +0200 Subject: [PATCH] user32: Add stub for SetThreadDpiAwarenessContext. Signed-off-by: Louis Lenders Signed-off-by: Alexandre Julliard --- dlls/user32/sysparams.c | 9 +++++++++ dlls/user32/user32.spec | 1 + include/windef.h | 1 + include/winuser.h | 1 + 4 files changed, 12 insertions(+) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index f80cea1077e..4824ad2622f 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -2963,6 +2963,15 @@ BOOL WINAPI IsProcessDPIAware(void) return TRUE; } +/********************************************************************** + * SetThreadDpiAwarenessContext (USER32.@) + */ +DPI_AWARENESS_CONTEXT WINAPI SetThreadDpiAwarenessContext( DPI_AWARENESS_CONTEXT context ) +{ + FIXME("(%p): stub\n", context); + return NULL; +} + /********************************************************************** * GetAutoRotationState [USER32.@] */ diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index f601d7d7bb1..1bcdf2c424f 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -686,6 +686,7 @@ @ stdcall SetSystemTimer(long long long ptr) @ stdcall SetTaskmanWindow (long) @ stdcall SetThreadDesktop(long) +@ stdcall SetThreadDpiAwarenessContext(ptr) @ stdcall SetTimer(long long long ptr) @ stdcall SetUserObjectInformationA(long long ptr long) @ stdcall SetUserObjectInformationW(long long ptr long) diff --git a/include/windef.h b/include/windef.h index 8a9f9449a67..df0eb7715b7 100644 --- a/include/windef.h +++ b/include/windef.h @@ -289,6 +289,7 @@ typedef DWORD COLORREF, *LPCOLORREF; /* Handle types */ typedef int HFILE; +DECLARE_HANDLE(DPI_AWARENESS_CONTEXT); DECLARE_HANDLE(HACCEL); DECLARE_HANDLE(HBITMAP); DECLARE_HANDLE(HBRUSH); diff --git a/include/winuser.h b/include/winuser.h index 08a02980c90..d587859d086 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -4071,6 +4071,7 @@ WINUSERAPI BOOL WINAPI SetSystemCursor(HCURSOR,DWORD); WINUSERAPI BOOL WINAPI SetSystemMenu(HWND,HMENU); WINUSERAPI UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC); WINUSERAPI BOOL WINAPI SetThreadDesktop(HDESK); +WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT); WINUSERAPI UINT_PTR WINAPI SetTimer(HWND,UINT_PTR,UINT,TIMERPROC); WINUSERAPI BOOL WINAPI SetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD); WINUSERAPI BOOL WINAPI SetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD);