Click or drag to resize
Xcalibur Systems LLC Logo

WindowHelperGetParent Method

Retrieves a handle to the specified window's parent or owner.

GetParent 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)]
public static IntPtr GetParent(
	IntPtr windowHandle
)

Parameters

windowHandle  IntPtr
A handle to the window whose parent window handle is to be retrieved.

Return Value

IntPtr
If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window with the WS_POPUP style, the return value is a handle to the owner window.
See Also