MonitorFromWindow function user32
The MonitorFromWindow function retrieves a handle to the display monitor that has the largest area of intersection with the bounding rectangle of a specified window.
HMONITOR MonitorFromWindow(
HWND hwnd,
DWORD dwFlags
);
Implementation
int MonitorFromWindow(int hwnd, int dwFlags) =>
_MonitorFromWindow(hwnd, dwFlags);