GroupLab Widget Tap Library

Win32Helper.GetRootAncestor Method 

Traverses the windowing system hierarchy (from child to parent to grandparent and so forth) to determine the root ancestor of a window.

public static IntPtr GetRootAncestor(
   IntPtr windowHandle
);

Parameters

windowHandle
A window handle.

Return Value

The windowing system identifier of the root ancestor of the window.

See Also

Win32Helper Class | GroupLab.WidgetTap.Helpers Namespace