public static extern bool EndPaint(IntPtr hWnd, [In] ref PAINTSTRUCT lpPaint);
public static extern IntPtr BeginPaint(IntPtr hwnd, out PAINTSTRUCT lpPaint);