![Xcalibur Systems LLC Logo](../icons/logo.png) |
MonitorHelperGetWindowRect 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.
GetWindowRect function Namespace: Xcalibur.NativeMethods.V2.MonitorsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax[DllImportAttribute("user32.dll")]
public static bool GetWindowRect(
IntPtr windowHandle,
ref Rectangle rectangle
)
<DllImportAttribute("user32.dll">]
Public Shared Function GetWindowRect (
windowHandle As IntPtr,
ByRef rectangle As Rectangle
) As Boolean
public:
[DllImportAttribute(L"user32.dll")]
static bool GetWindowRect(
IntPtr windowHandle,
Rectangle% rectangle
)
[<DllImportAttribute("user32.dll")>]
static member GetWindowRect :
windowHandle : IntPtr *
rectangle : Rectangle byref -> bool
Parameters
- windowHandle IntPtr
- The window handle.
- rectangle Rectangle
- The rectangle.
Return Value
Boolean
See Also