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 WINAPI GetDpiForShellUiComponent(
  _In_ SHELL_UI_COMPONENT component
);

Parameters

component [in]

The type of shell component.

Return value

The DPI required for an icon of this type.

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

ShellScalingAPI.h

Library

Shcore.lib

DLL

Shcore.dll

 

 

Show: