public static extern void EndPaint(IntPtr hwnd, [In] ref PaintStruct lpPaint);
public static extern IntPtr BeginPaint(IntPtr hwnd, out PaintStruct lpPaint);