User32GetWindowRgn(IntPtr, IntPtr) Method
Obtains a copy of the window region of a window.
The window region of a window is set by calling the SetWindowRgn function.
The window region determines the area within the window where the system permits drawing.
The system does not display any portion of a window that lies outside of the window region.
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 GetWindowRgn(
IntPtr hWnd,
IntPtr hRgn
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function GetWindowRgn (
hWnd As IntPtr,
hRgn As IntPtr
) As RegionComplexity
Dim hWnd As IntPtr
Dim hRgn As IntPtr
Dim returnValue As RegionComplexity
returnValue = User32.GetWindowRgn(hWnd,
hRgn)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static RegionComplexity GetWindowRgn(
IntPtr hWnd,
IntPtr hRgn
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member GetWindowRgn :
hWnd : IntPtr *
hRgn : IntPtr -> RegionComplexity
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the window whose window region is to be obtained.
- hRgn IntPtr
-
A handle to the region which will be modified to represent the window region.
RegionComplexity
The return value specifies the type of the region that the function obtains.
To get extended error information, call
GetLastWin32Error.