Skip to main content

dxGetProcessDpiAwareness Method

Identifies the DPI awareness mode of the current or specified process.

Declaration

function dxGetProcessDpiAwareness: TdxProcessDpiAwareness;

Returns

Type
TdxProcessDpiAwareness

Remarks

The first overloaded function variant returns the DPI awareness mode for the current running process while the second and third variants return the DPI awareness mode for a process whose handle is passed as the AProcess parameter.

Call only the first function variant if your application (the current process) is running under Microsoft Windows® 10, since the second and third variants do not distinguish the first (v1) and second (v2) per-monitor DPI-awareness versions, and return pdaPerMonitorDpiAware in both cases.

Refer to the TdxProcessDpiAwareness type description for details on all DPI awareness modes, including information on operating system versions that support each mode.

See Also