Function Reference


_WinAPI_GetWindowInfo

Retrieves information about the specified window

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

Parameters

$hWnd Handle to the window whose information is to be retrieved.

Return Value

Success: $tagWINDOWINFO structure that contains the information about the specified window.
Failure: Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

See Also

Search GetWindowInfo in MSDN Library.

Example

#include <WinAPISysWin.au3>

Local $tWINDOWINFO = _WinAPI_GetWindowInfo(_WinAPI_GetDesktopWindow())

ConsoleWrite('Left:   ' & DllStructGetData($tWINDOWINFO, 'rWindow', 1) & @CRLF)
ConsoleWrite('Top:    ' & DllStructGetData($tWINDOWINFO, 'rWindow', 2) & @CRLF)
ConsoleWrite('Right:  ' & DllStructGetData($tWINDOWINFO, 'rWindow', 3) & @CRLF)
ConsoleWrite('Bottom: ' & DllStructGetData($tWINDOWINFO, 'rWindow', 4) & @CRLF)