SetMonitorBrightness function Null safety dxva2

int SetMonitorBrightness(
  1. int hMonitor,
  2. int dwNewBrightness
)

Sets a monitor's brightness value. Increasing the brightness value makes the display on the monitor brighter, and decreasing it makes the display dimmer.

_BOOL SetMonitorBrightness(
  HANDLE hMonitor,
  DWORD  dwNewBrightness
);

Implementation

int SetMonitorBrightness(int hMonitor, int dwNewBrightness) {
  final _SetMonitorBrightness = _dxva2.lookupFunction<
      Int32 Function(IntPtr hMonitor, Uint32 dwNewBrightness),
      int Function(int hMonitor, int dwNewBrightness)>('SetMonitorBrightness');
  return _SetMonitorBrightness(hMonitor, dwNewBrightness);
}