GetMonitorRedGreenOrBlueGain function Null safety dxva2

int GetMonitorRedGreenOrBlueGain(
  1. int hMonitor,
  2. int gtGainType,
  3. Pointer<Uint32> pdwMinimumGain,
  4. Pointer<Uint32> pdwCurrentGain,
  5. Pointer<Uint32> pdwMaximumGain
)

Retrieves a monitor's red, green, or blue gain value.

_BOOL GetMonitorRedGreenOrBlueGain(
  HANDLE       hMonitor,
  MC_GAIN_TYPE gtGainType,
  LPDWORD      pdwMinimumGain,
  LPDWORD      pdwCurrentGain,
  LPDWORD      pdwMaximumGain
);

Implementation

int GetMonitorRedGreenOrBlueGain(
    int hMonitor,
    int gtGainType,
    Pointer<Uint32> pdwMinimumGain,
    Pointer<Uint32> pdwCurrentGain,
    Pointer<Uint32> pdwMaximumGain) {
  final _GetMonitorRedGreenOrBlueGain = _dxva2.lookupFunction<
      Int32 Function(
          IntPtr hMonitor,
          Uint32 gtGainType,
          Pointer<Uint32> pdwMinimumGain,
          Pointer<Uint32> pdwCurrentGain,
          Pointer<Uint32> pdwMaximumGain),
      int Function(
          int hMonitor,
          int gtGainType,
          Pointer<Uint32> pdwMinimumGain,
          Pointer<Uint32> pdwCurrentGain,
          Pointer<Uint32> pdwMaximumGain)>('GetMonitorRedGreenOrBlueGain');
  return _GetMonitorRedGreenOrBlueGain(
      hMonitor, gtGainType, pdwMinimumGain, pdwCurrentGain, pdwMaximumGain);
}