public static extern int EndPaint(IntPtr hWnd, ref PAINTSTRUCT lpPaint);
public static extern IntPtr BeginPaint(IntPtr hWnd, out PAINTSTRUCT lpPaint);