This is a WINAPI question. as the title says, is there a function that retrieves a handle to highest up the hierarchy? like, if i have a child, who's parent is a child, who's parented to the main window, what is the function that retrieves the handle to that main window. GetParent just retrieves the next one up, right?