procedure GetWindowSizeEx(const Wnd: Hwnd; out Width, Height: Integer; const ClientArea: Boolean);
SCAR Divi 3.35 > Current
Returns the dimensions of a window specified by Wnd in Width and Height. If the given window does not exist 0 is returned for both dimensions. If ClientArea is set to true, the dimensions returned are those of the client area of the window on the screen, rather than the window itself.
var W, H: Integer; begin GetWindowSizeEx(GetDesktopWindow, W, H, False); WriteLn(W); WriteLn(H); end.