# Function Reference

# _WinAPI_GetParent

Retrieves the handle of the specified child window's parent window

#include <WinAPISysWin.au3>
_WinAPI_GetParent ( $hWnd )

## Parameters

$hWnd | Window handle of child window

## Return Value

Success: | The handle of the parent window
Failure: | 0, call _WinAPI_GetLastError() to get extended error information

## Related

_WinAPI_GetAncestor

## See Also

Search GetParent in MSDN Library.