Implemented GetAncestor and removed WIN_GetTopParent.