GetMonitorColorTemperature function Null safety dxva2

int GetMonitorColorTemperature(
  1. int hMonitor,
  2. Pointer<Uint32> pctCurrentColorTemperature
)

Retrieves a monitor's current color temperature.

_BOOL GetMonitorColorTemperature(
  HANDLE                 hMonitor,
  LPMC_COLOR_TEMPERATURE pctCurrentColorTemperature
);

Implementation

int GetMonitorColorTemperature(
    int hMonitor, Pointer<Uint32> pctCurrentColorTemperature) {
  final _GetMonitorColorTemperature = _dxva2.lookupFunction<
          Int32 Function(
              IntPtr hMonitor, Pointer<Uint32> pctCurrentColorTemperature),
          int Function(
              int hMonitor, Pointer<Uint32> pctCurrentColorTemperature)>(
      'GetMonitorColorTemperature');
  return _GetMonitorColorTemperature(hMonitor, pctCurrentColorTemperature);
}