GetSystemMetricsForDpi function user32
Retrieves the specified system metric or system configuration setting taking into account a provided DPI.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getsystemmetricsfordpi.
Implementation
Win32Result<int> GetSystemMetricsForDpi(SYSTEM_METRICS_INDEX nIndex, int dpi) {
final result_ = GetSystemMetricsForDpi_Wrapper(nIndex, dpi);
return .new(value: result_.value.i32, error: result_.error);
}