public static extern bool EndPaint(IntPtr hwnd, ref PAINTSTRUCT lpPaint);
public static extern IntPtr BeginPaint(IntPtr hwnd, ref PAINTSTRUCT lpPaint);