/* * PROJECT: ReactOS Kernel - Vista+ APIs * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later) * PURPOSE: DPI functions for user32 and user32_vista. * COPYRIGHT: Copyright 2024 Carl Bialorucki */ #define WIN32_NO_STATUS #define _INC_WINDOWS #define COM_NO_WINDOWS_H #include #include #include #define NDEBUG #include /* * @stub */ UINT WINAPI GetDpiForSystem(VOID) { HDC hDC; UINT Dpi; hDC = GetDC(NULL); Dpi = GetDeviceCaps(hDC, LOGPIXELSY); ReleaseDC(NULL, hDC); return Dpi; } /* * @stub */ UINT WINAPI GetDpiForWindow( _In_ HWND hWnd) { UNIMPLEMENTED_ONCE; UNREFERENCED_PARAMETER(hWnd); return GetDpiForSystem(); }