GetWindowRect

[DllImport("user32.dll", SetLastError = true)]
public static extern bool GetWindowRect(
   IntPtr hWnd,
   out RECT lpRect
);

Microsoft documentation: Link

Last updated