User32GetWindowRgnBox(IntPtr, Rectangle) Method
Retrieves the dimensions of the tightest bounding rectangle for the window region of a window..
Namespace: DevCase.Win32.NativeMethodsAssembly: 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(
IntPtr hWnd,
ref Rectangle refRect
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function GetWindowRgnBox (
hWnd As IntPtr,
ByRef refRect As Rectangle
) As RegionComplexity
Dim hWnd As IntPtr
Dim refRect As Rectangle
Dim returnValue As RegionComplexity
returnValue = User32.GetWindowRgnBox(hWnd,
refRect)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static RegionComplexity GetWindowRgnBox(
IntPtr hWnd,
Rectangle% refRect
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member GetWindowRgnBox :
hWnd : IntPtr *
refRect : Rectangle byref -> RegionComplexity
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
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.
RegionComplexity
The return value specifies the type of the region that the function obtains.
To get extended error information, call
GetLastWin32Error.