GetAncestor function user32
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));