MonitorFromPoint function user32

HMONITOR MonitorFromPoint(
  1. POINT pt,
  2. MONITOR_FROM_FLAGS dwFlags
)

Retrieves a handle to the display monitor that contains a specified point.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-monitorfrompoint.

Implementation

@pragma('vm:prefer-inline')
HMONITOR MonitorFromPoint(POINT pt, MONITOR_FROM_FLAGS dwFlags) =>
    HMONITOR(_MonitorFromPoint(pt, dwFlags));