GetMonitorContrast function Null safety dxva2

int GetMonitorContrast(
  1. int hMonitor,
  2. Pointer<Uint32> pdwMinimumContrast,
  3. Pointer<Uint32> pdwCurrentContrast,
  4. Pointer<Uint32> pdwMaximumContrast
)

Retrieves a monitor's minimum, maximum, and current contrast settings.

_BOOL GetMonitorContrast(
  HANDLE  hMonitor,
  LPDWORD pdwMinimumContrast,
  LPDWORD pdwCurrentContrast,
  LPDWORD pdwMaximumContrast
);

Implementation

int GetMonitorContrast(int hMonitor, Pointer<Uint32> pdwMinimumContrast,
    Pointer<Uint32> pdwCurrentContrast, Pointer<Uint32> pdwMaximumContrast) {
  final _GetMonitorContrast = _dxva2.lookupFunction<
      Int32 Function(
          IntPtr hMonitor,
          Pointer<Uint32> pdwMinimumContrast,
          Pointer<Uint32> pdwCurrentContrast,
          Pointer<Uint32> pdwMaximumContrast),
      int Function(
          int hMonitor,
          Pointer<Uint32> pdwMinimumContrast,
          Pointer<Uint32> pdwCurrentContrast,
          Pointer<Uint32> pdwMaximumContrast)>('GetMonitorContrast');
  return _GetMonitorContrast(
      hMonitor, pdwMinimumContrast, pdwCurrentContrast, pdwMaximumContrast);
}