ReactOS 0.4.15-dev-8614-gbc76250
dpi.c
Go to the documentation of this file.
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 */
21UINT
24{
25 HDC hDC;
26 UINT Dpi;
27 hDC = GetDC(NULL);
30 return Dpi;
31}
32
33/*
34 * @stub
35 */
36UINT
40{
43 return GetDpiForSystem();
44}
static HDC hDC
Definition: 3dtext.c:33
HWND hWnd
Definition: settings.c:17
#define NULL
Definition: types.h:112
UINT WINAPI GetDpiForWindow(_In_ HWND hWnd)
Definition: dpi.c:38
UINT WINAPI GetDpiForSystem(VOID)
Definition: dpi.c:23
static HDC
Definition: imagelist.c:88
#define _In_
Definition: ms_sal.h:308
unsigned int UINT
Definition: ndis.h:50
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define UNIMPLEMENTED_ONCE
Definition: typedefs.h:30
#define WINAPI
Definition: msvc.h:6
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define LOGPIXELSY
Definition: wingdi.h:719
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)