User32GetWindowRect(IntPtr, NativeRectangle) Method

Retrieves the dimensions of the bounding rectangle of the specified window.

The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

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 bool GetWindowRect(
	IntPtr hWnd,
	out NativeRectangle refRect
)

Parameters

hWnd  IntPtr
A IntPtr handle to the window.
refRect  NativeRectangle
A pointer to a NativeRectangle structure that receives the screen coordinates of the upper-left and lower-right corners of the window.

Return Value

Boolean
if the function succeeds, otherwise.

Remarks

See Also