1 /* 2 * PROJECT: ReactOS Kernel - Vista+ APIs 3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later) 4 * PURPOSE: DPI functions for user32 and user32_vista. 5 * COPYRIGHT: Copyright 2024 Carl Bialorucki <cbialo2@outlook.com> 6 */ 7 8 #define WIN32_NO_STATUS 9 #define _INC_WINDOWS 10 #define COM_NO_WINDOWS_H 11 #include <windef.h> 12 #include <wingdi.h> 13 #include <winuser.h> 14 15 #define NDEBUG 16 #include <debug.h> 17 18 /* 19 * @stub 20 */ 21 UINT 22 WINAPI GetDpiForSystem(VOID)23GetDpiForSystem(VOID) 24 { 25 HDC hDC; 26 UINT Dpi; 27 hDC = GetDC(NULL); 28 Dpi = GetDeviceCaps(hDC, LOGPIXELSY); 29 ReleaseDC(NULL, hDC); 30 return Dpi; 31 } 32 33 /* 34 * @stub 35 */ 36 UINT 37 WINAPI GetDpiForWindow(_In_ HWND hWnd)38GetDpiForWindow( 39 _In_ HWND hWnd) 40 { 41 UNIMPLEMENTED_ONCE; 42 UNREFERENCED_PARAMETER(hWnd); 43 return GetDpiForSystem(); 44 } 45