GetMonitorRedGreenOrBlueDrive function Null safety dxva2

int GetMonitorRedGreenOrBlueDrive (
  1. int hMonitor,
  2. int dtDriveType,
  3. Pointer<Uint32> pdwMinimumDrive,
  4. Pointer<Uint32> pdwCurrentDrive,
  5. Pointer<Uint32> pdwMaximumDrive
)

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

_BOOL GetMonitorRedGreenOrBlueDrive(
  HANDLE        hMonitor,
  MC_DRIVE_TYPE dtDriveType,
  LPDWORD       pdwMinimumDrive,
  LPDWORD       pdwCurrentDrive,
  LPDWORD       pdwMaximumDrive
);

Implementation

int GetMonitorRedGreenOrBlueDrive(
    int hMonitor,
    int dtDriveType,
    Pointer<Uint32> pdwMinimumDrive,
    Pointer<Uint32> pdwCurrentDrive,
    Pointer<Uint32> pdwMaximumDrive) {
  final _GetMonitorRedGreenOrBlueDrive = _dxva2.lookupFunction<
      Int32 Function(
          IntPtr hMonitor,
          Int32 dtDriveType,
          Pointer<Uint32> pdwMinimumDrive,
          Pointer<Uint32> pdwCurrentDrive,
          Pointer<Uint32> pdwMaximumDrive),
      int Function(
          int hMonitor,
          int dtDriveType,
          Pointer<Uint32> pdwMinimumDrive,
          Pointer<Uint32> pdwCurrentDrive,
          Pointer<Uint32> pdwMaximumDrive)>('GetMonitorRedGreenOrBlueDrive');
  return _GetMonitorRedGreenOrBlueDrive(
      hMonitor, dtDriveType, pdwMinimumDrive, pdwCurrentDrive, pdwMaximumDrive);
}