User32GetUpdateRgn(IntPtr, IntPtr, Boolean) Method

Retrieves the update region of a window by copying it into the specified region.

The coordinates of the update region are relative to the upper-left corner of the window (that is, they are client coordinates).

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 GetUpdateRgn(
	IntPtr hWnd,
	IntPtr hRgn,
	bool erase
)

Parameters

hWnd  IntPtr
A handle to the window with an update region that is to be retrieved.
hRgn  IntPtr
A handle to the region to receive the update region.
erase  Boolean

[Missing <param name="erase"/> documentation for "M:DevCase.Win32.NativeMethods.User32.GetUpdateRgn(System.IntPtr,System.IntPtr,System.Boolean)"]

Return Value

RegionComplexity
The return value indicates the complexity of the resulting region.

To get extended error information, call GetLastWin32Error.

Remarks

See Also