public static RECT GetWindowRect(IntPtr hwnd) { var r = new RECT(); GetWindowRect(hwnd, out r); return r; }
public static extern bool GetWindowRect(IntPtr hwnd, out RECT lpRect);