User32WindowFromPoint(Point) Method

Retrieves a handle to the window that contains the specified point.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static IntPtr WindowFromPoint(
	Point pt
)

Parameters

pt  Point
The point to be checked.

Return Value

IntPtr
The return value is a handle to the window that contains the point.

If no window exists at the given point, the return value is Zero.

If the point is over a static text control, the return value is a handle to the window under the static text control.

Remarks

See Also