GetAncestor function user32

HWND GetAncestor(
  1. HWND hwnd,
  2. GET_ANCESTOR_FLAGS gaFlags
)

Retrieves the handle to the ancestor of the specified window.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getancestor.

Implementation

@pragma('vm:prefer-inline')
HWND GetAncestor(HWND hwnd, GET_ANCESTOR_FLAGS gaFlags) =>
    HWND(_GetAncestor(hwnd, gaFlags));