Louis Lenders : user32: Add stub for SetThreadDpiAwarenessContext.

Alexandre Julliard julliard at winehq.org
Thu Mar 29 19:13:29 CDT 2018


Module: wine
Branch: master
Commit: 40b46d900a60e5a4011f0004fd939dfc7dba735a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=40b46d900a60e5a4011f0004fd939dfc7dba735a

Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date:   Mon Mar 26 19:27:08 2018 +0200

user32: Add stub for SetThreadDpiAwarenessContext.

Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 f80cea1..4824ad2 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -2964,6 +2964,15 @@ BOOL WINAPI IsProcessDPIAware(void)
 }
 
 /**********************************************************************
+ *              SetThreadDpiAwarenessContext   (USER32.@)
+ */
+DPI_AWARENESS_CONTEXT WINAPI SetThreadDpiAwarenessContext( DPI_AWARENESS_CONTEXT context )
+{
+    FIXME("(%p): stub\n", context);
+    return NULL;
+}
+
+/**********************************************************************
  *              GetAutoRotationState [USER32.@]
  */
 BOOL WINAPI GetAutoRotationState( AR_STATE *state )
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index f601d7d..1bcdf2c 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 8a9f944..df0eb77 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 08a0298..d587859 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);




More information about the wine-cvs mailing list