MonitorFromRect function Null safety user32

int MonitorFromRect(
  1. Pointer<RECT> lprc,
  2. int dwFlags
)

The MonitorFromRect function retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle.

HMONITOR MonitorFromRect(
  LPCRECT lprc,
  DWORD   dwFlags
);

Implementation

int MonitorFromRect(Pointer<RECT> lprc, int dwFlags) {
  final _MonitorFromRect = _user32.lookupFunction<
      IntPtr Function(Pointer<RECT> lprc, Uint32 dwFlags),
      int Function(Pointer<RECT> lprc, int dwFlags)>('MonitorFromRect');
  return _MonitorFromRect(lprc, dwFlags);
}