> For the complete documentation index, see [llms.txt](https://pinvokeisalive.gitbook.io/pinvoke/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pinvokeisalive.gitbook.io/pinvoke/directory/structures/paintstruct.md).

# PAINTSTRUCT

### C# Definition:

```cs
[StructLayout(LayoutKind.Sequential)]
struct PAINTSTRUCT {
   public IntPtr hdc;
   public bool fErase;
   public RECT rcPaint;
   public bool fRestore;
   public bool fIncUpdate;
   [MarshalAs(UnmanagedType.ByValArray, SizeConst=32)] public byte [] rgbReserved;
}
```

### VB Definition:

```cs
<StructLayout(LayoutKind.Sequential, Pack := 4)> _
  Public Structure PAINTSTRUCT
    Public hdc As IntPtr
    Public fErase As Integer
    Public rcPaint As RECT
    Public fRestore As Integer
    Public fIncUpdate As Integer
    <MarshalAs(UnmanagedType.ByValArray, SizeConst := 32)> _
    Public rgbReserved As Byte()
End Structure
```
