reactos/win32ss/user/user32_vista/dpi.c

45 lines
774 B
C
Raw Normal View History

/*
* 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 <cbialo2@outlook.com>
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <windef.h>
#include <wingdi.h>
#include <winuser.h>
#define NDEBUG
#include <debug.h>
/*
* @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();
}