ReactOS 0.4.16-dev-833-g4bc97ad
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

HDC APIENTRY NtUserGetDC (HWND hWnd)
 
UINT WINAPI GetDpiForSystem (VOID)
 
UINT WINAPI GetDpiForWindow (_In_ HWND hWnd)
 
BOOL WINAPI IsProcessDPIAware (VOID)
 
BOOL WINAPI SetProcessDPIAware (VOID)
 
BOOL WINAPI SetProcessDpiAwarenessContext (_In_ DPI_AWARENESS_CONTEXT context)
 
BOOL WINAPI GetProcessDpiAwarenessInternal (_In_ HANDLE process, _Out_ DPI_AWARENESS *awareness)
 
BOOL WINAPI SetProcessDpiAwarenessInternal (_In_ DPI_AWARENESS awareness)
 
BOOL WINAPI GetDpiForMonitorInternal (_In_ HMONITOR monitor, _In_ UINT type, _Out_ UINT *x, _Out_ UINT *y)
 
BOOL WINAPI LogicalToPhysicalPoint (_In_ HWND hwnd, _Inout_ POINT *point)
 

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 18 of file dpi.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file dpi.c.

Function Documentation

◆ GetDpiForMonitorInternal()

BOOL WINAPI GetDpiForMonitorInternal ( _In_ HMONITOR  monitor,
_In_ UINT  type,
_Out_ UINT x,
_Out_ UINT y 
)

Definition at line 113 of file dpi.c.

118{
120 return FALSE;
121}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define FALSE
Definition: types.h:117

◆ GetDpiForSystem()

UINT WINAPI GetDpiForSystem ( VOID  )

Definition at line 26 of file dpi.c.

27{
28 HDC hDC;
29 UINT Dpi;
33 return Dpi;
34}
static HDC hDC
Definition: 3dtext.c:33
#define NULL
Definition: types.h:112
HDC APIENTRY NtUserGetDC(HWND hWnd)
Definition: windc.c:1014
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)

Referenced by GetDpiForWindow().

◆ GetDpiForWindow()

UINT WINAPI GetDpiForWindow ( _In_ HWND  hWnd)

Definition at line 41 of file dpi.c.

43{
46 return GetDpiForSystem();
47}
HWND hWnd
Definition: settings.c:17
UINT WINAPI GetDpiForSystem(VOID)
Definition: dpi.c:26
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define UNIMPLEMENTED_ONCE
Definition: typedefs.h:30

Referenced by get_scaled_metric().

◆ GetProcessDpiAwarenessInternal()

BOOL WINAPI GetProcessDpiAwarenessInternal ( _In_ HANDLE  process,
_Out_ DPI_AWARENESS awareness 
)

Definition at line 88 of file dpi.c.

91{
93 return FALSE;
94}

◆ IsProcessDPIAware()

BOOL WINAPI IsProcessDPIAware ( VOID  )

Definition at line 54 of file dpi.c.

55{
57 return FALSE;
58}

◆ LogicalToPhysicalPoint()

BOOL WINAPI LogicalToPhysicalPoint ( _In_ HWND  hwnd,
_Inout_ POINT point 
)

Definition at line 128 of file dpi.c.

131{
133 return TRUE;
134}
#define TRUE
Definition: types.h:120

◆ NtUserGetDC()

HDC APIENTRY NtUserGetDC ( HWND  hWnd)

Definition at line 1014 of file windc.c.

1015{
1016 TRACE("NtUGetDC -> %p:%x\n", hWnd, !hWnd ? DCX_CACHE | DCX_WINDOW : DCX_USESTYLE);
1017
1019}
#define DCX_USESTYLE
Definition: GetDCEx.c:10
#define TRACE(s)
Definition: solgame.cpp:4
HDC APIENTRY NtUserGetDCEx(HWND hWnd OPTIONAL, HANDLE ClipRegion, ULONG Flags)
Definition: windc.c:974
#define DCX_CACHE
Definition: winuser.h:2117
#define DCX_WINDOW
Definition: winuser.h:2116

Referenced by GetDpiForSystem().

◆ SetProcessDPIAware()

BOOL WINAPI SetProcessDPIAware ( VOID  )

Definition at line 65 of file dpi.c.

66{
68 return FALSE;
69}

◆ SetProcessDpiAwarenessContext()

BOOL WINAPI SetProcessDpiAwarenessContext ( _In_ DPI_AWARENESS_CONTEXT  context)

Definition at line 76 of file dpi.c.

78{
80 return FALSE;
81}

◆ SetProcessDpiAwarenessInternal()

BOOL WINAPI SetProcessDpiAwarenessInternal ( _In_ DPI_AWARENESS  awareness)

Definition at line 101 of file dpi.c.

103{
105 return FALSE;
106}