User32GetWindowRgnBox(SafeHandle, Rectangle) Method

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

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static RegionComplexity GetWindowRgnBox(
	SafeHandle hWnd,
	ref Rectangle refRect
)

Parameters

hWnd  SafeHandle
A handle to the window.
refRect  Rectangle
A NativeRectangle that receives the rectangle dimensions, in device units relative to the upper-left corner of the window.

Return Value

RegionComplexity
The return value specifies the type of the region that the function obtains.

To get extended error information, call GetLastWin32Error.

Remarks

See Also