MonitorFromWindow function Null safety user32

int MonitorFromWindow(
  1. int hwnd,
  2. int dwFlags

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


int MonitorFromWindow(int hwnd, int dwFlags) =>
    _MonitorFromWindow(hwnd, dwFlags);