WindowFromPhysicalPoint function (winuser.h)

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

Syntax

HWND WindowFromPhysicalPoint(
  [in] POINT Point
);

Parameters

[in] Point

Type: POINT

The physical coordinates of the point.

Return value

Type: HWND

A handle to the window that contains the given physical point. If no window exists at the point, this value is NULL.

Remarks

The WindowFromPhysicalPoint function does not retrieve a handle to a hidden or disabled window, even if the point is within the window.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll
API set ext-ms-win-ntuser-window-l1-1-1 (introduced in Windows 8.1)

See also

ChildWindowFromPoint

Conceptual

Other Resources

POINT

Reference

WindowFromDC

WindowFromPoint

Windows