Ask Learn
		
	
					Preview
					Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The MonitorFromPoint function retrieves a handle to the display monitor that contains a specified point.
HMONITOR MonitorFromPoint(
  [in] POINT pt,
  [in] DWORD dwFlags
);
[in] pt
A POINT structure that specifies the point of interest in virtual-screen coordinates.
[in] dwFlags
Determines the function's return value if the point is not contained within any display monitor.
This parameter can be one of the following 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.
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] | 
| Minimum supported server | Windows 2000 Server [desktop apps only] | 
| Target Platform | Windows | 
| Header | winuser.h (include Windows.h) | 
| Library | User32.lib | 
| DLL | User32.dll | 
| API set | ext-ms-win-ntuser-sysparams-ext-l1-1-1 (introduced in Windows 10, version 10.0.14393) | 
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in