Expand Minimize
This topic has not yet been rated - Rate this topic

GetScaleFactorForDevice function

Gets the preferred scale factor for a primary or for an immersive type of display device.

Syntax


STDAPI_(DEVICE_SCALE_FACTOR) WINAPI GetScaleFactorForDevice(
  _In_  DISPLAY_DEVICE_TYPE deviceType
);

Parameters

deviceType [in]

Type: DISPLAY_DEVICE_TYPE

The enum value that indicates the type of the display device.

Return value

Type: DEVICE_SCALE_FACTOR

An enum value that indicates the scale factor that should be used with the specified DISPLAY_DEVICE_TYPE.

Return code/valueDescription
SCALE_100_PERCENT
100

Use a scale factor of 1x.

SCALE_140_PERCENT
140

Use a scale factor of 1.4x.

SCALE_180_PERCENT
180

Use a scale factor of 1.8x.

 

Remarks

The default DEVICE_SCALE_FACTOR is SCALE_100_PERCENT.

Use the scale factor that is returned to scale point values for fonts and pixel values.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

ShellScalingApi.h

DLL

Shcore.dll

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.