shcore topic
Windows Shell Core APIs
Core shell functions such as DPI scaling.
Functions
-
GetDpiForMonitor(
int hmonitor, int dpiType, Pointer< shcoreUint32> dpiX, Pointer<Uint32> dpiY) → int - Queries the dots per inch (dpi) of a display.
-
GetProcessDpiAwareness(
int hprocess, Pointer< shcoreInt32> value) → int - Retrieves the dots per inch (dpi) awareness of the specified process.
-
GetScaleFactorForMonitor(
int hMon, Pointer< shcoreInt32> pScale) → int - Gets the scale factor of a specific monitor.
-
SetProcessDpiAwareness(
int value) → int shcore - Sets the process-default DPI awareness level. This is equivalent to calling SetProcessDpiAwarenessContext with the corresponding DPI_AWARENESS_CONTEXT value.