shellscalingapi.h header

This header is used by multiple technologies. For more information, see:

shellscalingapi.h contains the following programming interfaces:

Functions

 
GetDpiForMonitor

Queries the dots per inch (dpi) of a display.
GetDpiForShellUIComponent

Retrieves the dots per inch (dpi) occupied by a SHELL_UI_COMPONENT based on the current scale factor and PROCESS_DPI_AWARENESS.
GetProcessDpiAwareness

Retrieves the dots per inch (dpi) awareness of the specified process.
GetScaleFactorForDevice

Gets the preferred scale factor for a display device.
GetScaleFactorForMonitor

Gets the scale factor of a specific monitor. This function replaces GetScaleFactorForDevice.
RegisterScaleChangeEvent

Registers for an event that is triggered when the scale has possibly changed. This function replaces RegisterScaleChangeNotifications.
RegisterScaleChangeNotifications

Registers a window to receive callbacks when scaling information changes.
RevokeScaleChangeNotifications

Revokes the registration of a window, preventing it from receiving callbacks when scaling information changes.
SetProcessDpiAwareness

Sets the process-default DPI awareness level. This is equivalent to calling SetProcessDpiAwarenessContext with the corresponding DPI_AWARENESS_CONTEXT value.
UnregisterScaleChangeEvent

Unregisters for the scale change event registered through RegisterScaleChangeEvent. This function replaces RevokeScaleChangeNotifications.

Enumerations

 
DISPLAY_DEVICE_TYPE

Indicates whether the device is a primary or immersive type of display.
MONITOR_DPI_TYPE

Identifies the dots per inch (dpi) setting for a monitor.
PROCESS_DPI_AWARENESS

Identifies dots per inch (dpi) awareness values. DPI awareness indicates how much scaling work an application performs for DPI versus how much is done by the system.
SCALE_CHANGE_FLAGS

Flags that are used to indicate the scaling change that occurred.
SHELL_UI_COMPONENT

Identifies the type of UI component that is needed in the shell.