SetMonitorRedGreenOrBlueDrive function Null safety dxva2

int SetMonitorRedGreenOrBlueDrive (
  1. int hMonitor,
  2. int dtDriveType,
  3. int dwNewDrive
)

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

_BOOL SetMonitorRedGreenOrBlueDrive(
  HANDLE        hMonitor,
  MC_DRIVE_TYPE dtDriveType,
  DWORD         dwNewDrive
);

Implementation

int SetMonitorRedGreenOrBlueDrive(
    int hMonitor, int dtDriveType, int dwNewDrive) {
  final _SetMonitorRedGreenOrBlueDrive = _dxva2.lookupFunction<
      Int32 Function(IntPtr hMonitor, Int32 dtDriveType, Uint32 dwNewDrive),
      int Function(int hMonitor, int dtDriveType,
          int dwNewDrive)>('SetMonitorRedGreenOrBlueDrive');
  return _SetMonitorRedGreenOrBlueDrive(hMonitor, dtDriveType, dwNewDrive);
}