Click or drag to resize
Xcalibur Systems LLC Logo

WindowHelperGetAncestor Method

Retrieves the handle to the ancestor of the specified window.

GetAncestor function


Namespace: Xcalibur.NativeMethods.V2.Windows
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
public static IntPtr GetAncestor(
	IntPtr windowHandle,
	int flags
)

Parameters

windowHandle  IntPtr
A handle to the window whose ancestor is to be retrieved. If this parameter is the desktop window, the function returns NULL.
flags  Int32
The ancestor to be retrieved of type .

Return Value

IntPtr
The return value is the handle to the ancestor window.
See Also