# Function Reference

# _WinAPI_GetWindowRgnBox

Retrieves the dimensions of the tightest bounding rectangle for the window region of a window

#include <WinAPIGdi.au3>
_WinAPI_GetWindowRgnBox ( $hWnd, ByRef $tRECT )

## Parameters

$hWnd | Handle to the window.
$tRECT | Returns a $tagRECT structure that is created by this function, and contains the rectangle dimensions, in device units relative to the upper-left corner of the window.

## Return Value

Success: | The value that specifies the region's complexity; it can be one of the following values. $COMPLEXREGION $NULLREGION $SIMPLEREGION
Failure: | 0.

## See Also

Search GetWindowRgnBox in MSDN Library.