MonitorFromPoint function Null safety user32

int MonitorFromPoint(
  1. POINT pt,
  2. int dwFlags

The MonitorFromPoint function retrieves a handle to the display monitor that contains a specified point.

HMONITOR MonitorFromPoint(
  POINT pt,
  DWORD dwFlags


int MonitorFromPoint(POINT pt, int dwFlags) {
  final _MonitorFromPoint = _user32.lookupFunction<
      IntPtr Function(POINT pt, Uint32 dwFlags),
      int Function(POINT pt, int dwFlags)>('MonitorFromPoint');
  return _MonitorFromPoint(pt, dwFlags);