Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
HMONITOR MonitorFromPoint(
POINT pt, // a specified point
DWORD dwFlags // flags if no monitor contains specified point
);
Parameters
pt
A POINT structure that specifies the point of interest.
dwFlags
A set of flags that determine the function's return value if the point is not contained within any display monitor.
This parameter can be one of the following values.
Value
Meaning
MONITOR_DEFAULTTONEAREST
Return a handle to the display monitor that is nearest to the point.
MONITOR_DEFAULTTONULL
Return NULL.
MONITOR_DEFAULTTOPRIMARY
Return a handle to the primary display monitor.
Return Values
If the point is contained by a display monitor, the return value is an HMONITOR handle to that display monitor.
If the point is not contained by a display monitor, the return value depends on the value of dwFlags.
__________________________
The MonitorFromRect function obtains a handle to the display monitor that has the largest area of intersection with a specified rectangle.
HMONITOR MonitorFromRect(
LPCRECT lprc, // pointer to a RECT structure
DWORD dwFlags // flags if no monitor intersects the rectangle
);
Parameters
lprc
Pointer to a RECT structure that specifies the rectangle of interest.
dwFlags
A set of flags that determine the function's return value if the rectangle does not intersect any display monitor.
This parameter can be one of the following values.
Value
Meaning
MONITOR_DEFAULTTONEAREST
Return a handle to the display monitor that is nearest to the rectangle.
MONITOR_DEFAULTTONULL
Return NULL.
MONITOR_DEFAULTTOPRIMARY
Return a handle to the primary display monitor.
Return Values
If the rectangle intersects one or more display monitor rectangles, the return value is an HMONITOR handle to the display monitor that has the largest area of intersection with
the rectangle.
If the rectangle does not intersect a display monitor, the return value depends on the value of dwFlags.
__________________________
Good luck!
--Matvey