GetMonitorDisplayAreaSize function Null safety dxva2

int GetMonitorDisplayAreaSize(
  1. int hMonitor,
  2. int stSizeType,
  3. Pointer<Uint32> pdwMinimumWidthOrHeight,
  4. Pointer<Uint32> pdwCurrentWidthOrHeight,
  5. Pointer<Uint32> pdwMaximumWidthOrHeight
)

Retrieves a monitor's minimum, maximum, and current width or height.

_BOOL GetMonitorDisplayAreaSize(
  HANDLE       hMonitor,
  MC_SIZE_TYPE stSizeType,
  LPDWORD      pdwMinimumWidthOrHeight,
  LPDWORD      pdwCurrentWidthOrHeight,
  LPDWORD      pdwMaximumWidthOrHeight
);

Implementation

int GetMonitorDisplayAreaSize(
    int hMonitor,
    int stSizeType,
    Pointer<Uint32> pdwMinimumWidthOrHeight,
    Pointer<Uint32> pdwCurrentWidthOrHeight,
    Pointer<Uint32> pdwMaximumWidthOrHeight) {
  final _GetMonitorDisplayAreaSize = _dxva2.lookupFunction<
          Int32 Function(
              IntPtr hMonitor,
              Uint32 stSizeType,
              Pointer<Uint32> pdwMinimumWidthOrHeight,
              Pointer<Uint32> pdwCurrentWidthOrHeight,
              Pointer<Uint32> pdwMaximumWidthOrHeight),
          int Function(
              int hMonitor,
              int stSizeType,
              Pointer<Uint32> pdwMinimumWidthOrHeight,
              Pointer<Uint32> pdwCurrentWidthOrHeight,
              Pointer<Uint32> pdwMaximumWidthOrHeight)>(
      'GetMonitorDisplayAreaSize');
  return _GetMonitorDisplayAreaSize(
      hMonitor,
      stSizeType,
      pdwMinimumWidthOrHeight,
      pdwCurrentWidthOrHeight,
      pdwMaximumWidthOrHeight);
}