GetDpiForShellUIComponent function

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(
  SHELL_UI_COMPONENT Arg1
);

Parameters

Arg1

The type of shell component.

Return Value

The DPI required for an icon of this type.

Requirements

   
Windows version Windows 8.1 [desktop apps only] Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header shellscalingapi.h
Library Shcore.lib
DLL Shcore.dll