Calculate the window size?

Is there any way to get the window size (in x, y coordinates)?

Like GetMaxX, GetMaxY in Pascal for example…?

GetClientRect();