ReactOS 0.4.16-dev-122-g325d74c
dpi.c File Reference
#include <windef.h>
#include <wingdi.h>
#include <winuser.h>
#include <debug.h>
Include dependency graph for dpi.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define _INC_WINDOWS
 
#define COM_NO_WINDOWS_H
 
#define NDEBUG
 

Functions

UINT WINAPI GetDpiForSystem (VOID)
 
UINT WINAPI GetDpiForWindow (_In_ HWND hWnd)
 

Macro Definition Documentation

◆ _INC_WINDOWS

#define _INC_WINDOWS

Definition at line 9 of file dpi.c.

◆ COM_NO_WINDOWS_H

#define COM_NO_WINDOWS_H

Definition at line 10 of file dpi.c.

◆ NDEBUG

#define NDEBUG

Definition at line 15 of file dpi.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file dpi.c.

Function Documentation

◆ GetDpiForSystem()

UINT WINAPI GetDpiForSystem ( VOID  )

Definition at line 23 of file dpi.c.

24{
25 HDC hDC;
26 UINT Dpi;
27 hDC = GetDC(NULL);
30 return Dpi;
31}
static HDC hDC
Definition: 3dtext.c:33
#define NULL
Definition: types.h:112
static HDC
Definition: imagelist.c:88
unsigned int UINT
Definition: ndis.h:50
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)

Referenced by GetDpiForWindow().

◆ GetDpiForWindow()

UINT WINAPI GetDpiForWindow ( _In_ HWND  hWnd)

Definition at line 38 of file dpi.c.

40{
43 return GetDpiForSystem();
44}
HWND hWnd
Definition: settings.c:17
UINT WINAPI GetDpiForSystem(VOID)
Definition: dpi.c:23
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define UNIMPLEMENTED_ONCE
Definition: typedefs.h:30

Referenced by get_scaled_metric().