C++
HWND ADUI_PORT AdUiGetSafeParentHwnd();
File
adui.h
Description
This function finds a suitable parent window for a dialog when none is explicitly supplied. The algorithm obtains the active window (using GetActiveWindow()) and then traverses the parent hierarchy (using GetParent()). A disabled window or the main window terminates the walk.