GetDpiForShellUIComponent function (shellscalingapi.h)

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

Syntax

UINT GetDpiForShellUIComponent(
  [in] SHELL_UI_COMPONENT unnamedParam1
);

Parameters

[in] unnamedParam1

The type of shell component.

Return value

The DPI required for an icon of this type.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header shellscalingapi.h
Library Shcore.lib
DLL Shcore.dll