GetMonitorDisplayAreaPosition function Null safety dxva2

int GetMonitorDisplayAreaPosition (
  1. int hMonitor,
  2. int ptPositionType,
  3. Pointer<Uint32> pdwMinimumPosition,
  4. Pointer<Uint32> pdwCurrentPosition,
  5. Pointer<Uint32> pdwMaximumPosition
)

Retrieves a monitor's minimum, maximum, and current horizontal or vertical position.

_BOOL GetMonitorDisplayAreaPosition(
  HANDLE           hMonitor,
  MC_POSITION_TYPE ptPositionType,
  LPDWORD          pdwMinimumPosition,
  LPDWORD          pdwCurrentPosition,
  LPDWORD          pdwMaximumPosition
);

Implementation

int GetMonitorDisplayAreaPosition(
    int hMonitor,
    int ptPositionType,
    Pointer<Uint32> pdwMinimumPosition,
    Pointer<Uint32> pdwCurrentPosition,
    Pointer<Uint32> pdwMaximumPosition) {
  final _GetMonitorDisplayAreaPosition = _dxva2.lookupFunction<
      Int32 Function(
          IntPtr hMonitor,
          Int32 ptPositionType,
          Pointer<Uint32> pdwMinimumPosition,
          Pointer<Uint32> pdwCurrentPosition,
          Pointer<Uint32> pdwMaximumPosition),
      int Function(
          int hMonitor,
          int ptPositionType,
          Pointer<Uint32> pdwMinimumPosition,
          Pointer<Uint32> pdwCurrentPosition,
          Pointer<Uint32> pdwMaximumPosition)>('GetMonitorDisplayAreaPosition');
  return _GetMonitorDisplayAreaPosition(hMonitor, ptPositionType,
      pdwMinimumPosition, pdwCurrentPosition, pdwMaximumPosition);
}