ReactOS 0.4.16-dev-1605-g7dd1858
shellscalingapi.h File Reference
#include <shtypes.h>
Include dependency graph for shellscalingapi.h:

Go to the source code of this file.

Enumerations

enum  MONITOR_DPI_TYPE { MDT_EFFECTIVE_DPI , MDT_ANGULAR_DPI , MDT_RAW_DPI , MDT_DEFAULT = MDT_EFFECTIVE_DPI }
 
enum  PROCESS_DPI_AWARENESS { PROCESS_DPI_UNAWARE , PROCESS_SYSTEM_DPI_AWARE , PROCESS_PER_MONITOR_DPI_AWARE }
 
enum  DISPLAY_DEVICE_TYPE { DEVICE_PRIMARY , DEVICE_IMMERSIVE }
 
enum  SCALE_CHANGE_FLAGS { SCF_VALUE_NONE , SCF_SCALE , SCF_PHYSICAL }
 
enum  SHELL_UI_COMPONENT { SHELL_UI_COMPONENT_TASKBARS , SHELL_UI_COMPONENT_NOTIFICATIONAREA , SHELL_UI_COMPONENT_DESKBAND }
 

Functions

DEVICE_SCALE_FACTOR WINAPI GetScaleFactorForDevice (_In_ DISPLAY_DEVICE_TYPE deviceType)
 
HRESULT WINAPI RegisterScaleChangeNotifications (_In_ DISPLAY_DEVICE_TYPE displayDevice, _In_ HWND hwndNotify, _In_ UINT uMsgNotify, _Out_ DWORD *pdwCookie)
 
HRESULT WINAPI RevokeScaleChangeNotifications (_In_ DISPLAY_DEVICE_TYPE displayDevice, _In_ DWORD dwCookie)
 
HRESULT WINAPI GetScaleFactorForMonitor (_In_ HMONITOR hMon, _Out_ DEVICE_SCALE_FACTOR *pScale)
 
HRESULT WINAPI RegisterScaleChangeEvent (_In_ HANDLE hEvent, _Out_ DWORD_PTR *pdwCookie)
 
HRESULT WINAPI UnregisterScaleChangeEvent (_In_ DWORD_PTR dwCookie)
 
HRESULT WINAPI SetProcessDpiAwareness (_In_ PROCESS_DPI_AWARENESS value)
 
HRESULT WINAPI GetProcessDpiAwareness (_In_opt_ HANDLE hprocess, _Out_ PROCESS_DPI_AWARENESS *value)
 
HRESULT WINAPI GetDpiForMonitor (_In_ HMONITOR hmonitor, _In_ MONITOR_DPI_TYPE dpiType, _Out_ UINT *dpiX, _Out_ UINT *dpiY)
 
UINT WINAPI GetDpiForShellUIComponent (_In_ SHELL_UI_COMPONENT)
 

Enumeration Type Documentation

◆ DISPLAY_DEVICE_TYPE

Enumerator
DEVICE_PRIMARY 
DEVICE_IMMERSIVE 

Definition at line 27 of file shellscalingapi.h.

28{
DISPLAY_DEVICE_TYPE
@ DEVICE_IMMERSIVE
@ DEVICE_PRIMARY

◆ MONITOR_DPI_TYPE

Enumerator
MDT_EFFECTIVE_DPI 
MDT_ANGULAR_DPI 
MDT_RAW_DPI 
MDT_DEFAULT 

Definition at line 12 of file shellscalingapi.h.

13{
MONITOR_DPI_TYPE
@ MDT_RAW_DPI
@ MDT_EFFECTIVE_DPI
@ MDT_ANGULAR_DPI
@ MDT_DEFAULT

◆ PROCESS_DPI_AWARENESS

Enumerator
PROCESS_DPI_UNAWARE 
PROCESS_SYSTEM_DPI_AWARE 
PROCESS_PER_MONITOR_DPI_AWARE 

Definition at line 20 of file shellscalingapi.h.

◆ SCALE_CHANGE_FLAGS

Enumerator
SCF_VALUE_NONE 
SCF_SCALE 
SCF_PHYSICAL 

Definition at line 33 of file shellscalingapi.h.

34{
SCALE_CHANGE_FLAGS
@ SCF_SCALE
@ SCF_VALUE_NONE
@ SCF_PHYSICAL

◆ SHELL_UI_COMPONENT

Enumerator
SHELL_UI_COMPONENT_TASKBARS 
SHELL_UI_COMPONENT_NOTIFICATIONAREA 
SHELL_UI_COMPONENT_DESKBAND 

Definition at line 56 of file shellscalingapi.h.

Function Documentation

◆ GetDpiForMonitor()

HRESULT WINAPI GetDpiForMonitor ( _In_ HMONITOR  hmonitor,
_In_ MONITOR_DPI_TYPE  dpiType,
_Out_ UINT dpiX,
_Out_ UINT dpiY 
)

◆ GetDpiForShellUIComponent()

UINT WINAPI GetDpiForShellUIComponent ( _In_  SHELL_UI_COMPONENT)

◆ GetProcessDpiAwareness()

HRESULT WINAPI GetProcessDpiAwareness ( _In_opt_ HANDLE  hprocess,
_Out_ PROCESS_DPI_AWARENESS value 
)

◆ GetScaleFactorForDevice()

DEVICE_SCALE_FACTOR WINAPI GetScaleFactorForDevice ( _In_ DISPLAY_DEVICE_TYPE  deviceType)

◆ GetScaleFactorForMonitor()

HRESULT WINAPI GetScaleFactorForMonitor ( _In_ HMONITOR  hMon,
_Out_ DEVICE_SCALE_FACTOR pScale 
)

◆ RegisterScaleChangeEvent()

HRESULT WINAPI RegisterScaleChangeEvent ( _In_ HANDLE  hEvent,
_Out_ DWORD_PTR pdwCookie 
)

◆ RegisterScaleChangeNotifications()

HRESULT WINAPI RegisterScaleChangeNotifications ( _In_ DISPLAY_DEVICE_TYPE  displayDevice,
_In_ HWND  hwndNotify,
_In_ UINT  uMsgNotify,
_Out_ DWORD pdwCookie 
)

◆ RevokeScaleChangeNotifications()

HRESULT WINAPI RevokeScaleChangeNotifications ( _In_ DISPLAY_DEVICE_TYPE  displayDevice,
_In_ DWORD  dwCookie 
)

◆ SetProcessDpiAwareness()

HRESULT WINAPI SetProcessDpiAwareness ( _In_ PROCESS_DPI_AWARENESS  value)

Referenced by set_dpi_aware().

◆ UnregisterScaleChangeEvent()

HRESULT WINAPI UnregisterScaleChangeEvent ( _In_ DWORD_PTR  dwCookie)