public static extern IntPtr BeginPaint(IntPtr hWnd, ref PAINTSTRUCT ps); [DllImport("User32.dll", CharSet=CharSet.Auto)]