public static extern bool GetWindowRect(
     IntPtr hWnd,
     out Rect lpRect);
 public static extern bool GetClientRect(
     IntPtr hWnd,
     out Rect lpRect);