GetUpdateRect (user32)
Last changed: jnm2-74.212.46.188

.
Summary

C# Signature:

[DllImport("user32.dll")]

[return: MarshalAs(UnmanagedType.Bool)]

static extern bool GetUpdateRect(IntPtr hWnd, IntPtr lpRect, [MarshalAs(UnmanagedType.Bool)] bErase);

[DllImport("user32.dll")]

[return: MarshalAs(UnmanagedType.Bool)]

static extern bool GetUpdateRect(HandleRef hWnd, out RECT rect, [MarshalAs(UnmanagedType.Bool)] bool bErase);

VB.NET Signature:

Public Declare Function GetUpdateRect Lib "user32" (ByVal hWnd As System.IntPtr, ByRef rc As RECT, <MarshalAs(UnmanagedType.Bool)> ByRef fErase As Boolean) As <MarshalAs(UnmanagedType.Bool)> Boolean

User-Defined Types:

RECT

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

VB.NET :

Dim rRect As New RECT
Dim bErase As Boolean
GetUpdateRect(Me.Handle, rRect, bErase)

Alternative Managed API:

Do you know one? Please contribute it!

Documentation