User32GetWindowRgn(SafeHandle, SafeHandle) 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.

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 GetWindowRgn(
	SafeHandle hWnd,
	SafeHandle hRgn
)

Parameters

hWnd  SafeHandle
A handle to the window whose window region is to be obtained.
hRgn  SafeHandle
A handle to the region which will be modified to represent the window region.

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