GroupLab Widget Tap Library

Win32Helper.GetAncestry Method 

Traverses the windowing system hierarchy (from child to parent to grandparent and so forth), producing a list of windowing system identifiers for each window found.

public static IntPtr[] GetAncestry(
   IntPtr windowHandle
);

Parameters

windowHandle
A window handle.

Return Value

The ancestry, starting at the root ancestor and working down to the specified window.

See Also

Win32Helper Class | GroupLab.WidgetTap.Helpers Namespace