UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:shellscalingapi.GetScaleFactorForDevice |
GetScaleFactorForDevice function (shellscalingapi.h) |
Gets the preferred scale factor for a display device. |
|
shell\getscalefactorfordevice.htm |
shell |
5F312914-03F6-42E0-80F9-761D854A81A3 |
12/05/2018 |
GetScaleFactorForDevice, GetScaleFactorForDevice function [Windows Shell], shell.getscalefactorfordevice, shellscalingapi/GetScaleFactorForDevice |
shellscalingapi.h |
Windows |
Windows 8 [desktop apps only] |
Windows Server 2012 [desktop apps only] |
Shcore.dll |
Windows |
19H1 |
|
|
|
|
|
|
Gets the preferred scale factor for a display device.
Note This function is not supported as of Windows 8.1. Use GetScaleFactorForMonitor instead.
Type: DISPLAY_DEVICE_TYPE
The value that indicates the type of the display device.
Type: DEVICE_SCALE_FACTOR
A value that indicates the scale factor that should be used with the specified DISPLAY_DEVICE_TYPE.
Return code/value | Description |
---|---|
|
Use a scale factor of 1x. |
|
Use a scale factor of 1.4x. |
|
Use a scale factor of 1.8x. |
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.