GetTopWindow function user32

int GetTopWindow(
  1. int hWnd
)

Examines the Z order of the child windows associated with the specified parent window and retrieves a handle to the child window at the top of the Z order.

HWND GetTopWindow(
  HWND hWnd
);

Implementation

int GetTopWindow(int hWnd) => _GetTopWindow(hWnd);