GetMonitorColorTemperature function dxva2
Retrieves a monitor's current color temperature.
To learn more, see learn.microsoft.com/windows/win32/api/highlevelmonitorconfigurationapi/nf-highlevelmonitorconfigurationapi-getmonitorcolortemperature.
Implementation
Win32Result<int> GetMonitorColorTemperature(
HANDLE hMonitor,
Pointer<Int32> pctCurrentColorTemperature,
) {
resolveGetLastError();
final result_ = _GetMonitorColorTemperature(
hMonitor,
pctCurrentColorTemperature,
);
return .new(value: result_, error: GetLastError());
}