GetMonitorCapabilities function Null safety dxva2

int GetMonitorCapabilities(
  1. int hMonitor,
  2. Pointer<Uint32> pdwMonitorCapabilities,
  3. Pointer<Uint32> pdwSupportedColorTemperatures
)

Retrieves the configuration capabilities of a monitor. Call this function to find out which high-level monitor configuration functions are supported by the monitor.

_BOOL GetMonitorCapabilities(
  HANDLE  hMonitor,
  LPDWORD pdwMonitorCapabilities,
  LPDWORD pdwSupportedColorTemperatures
);

Implementation

int GetMonitorCapabilities(int hMonitor, Pointer<Uint32> pdwMonitorCapabilities,
    Pointer<Uint32> pdwSupportedColorTemperatures) {
  final _GetMonitorCapabilities = _dxva2.lookupFunction<
      Int32 Function(IntPtr hMonitor, Pointer<Uint32> pdwMonitorCapabilities,
          Pointer<Uint32> pdwSupportedColorTemperatures),
      int Function(
          int hMonitor,
          Pointer<Uint32> pdwMonitorCapabilities,
          Pointer<Uint32>
              pdwSupportedColorTemperatures)>('GetMonitorCapabilities');
  return _GetMonitorCapabilities(
      hMonitor, pdwMonitorCapabilities, pdwSupportedColorTemperatures);
}