get-display-size in Global Graphics

Gets the physical size of the display in pixels. Under Windows, this size does not include the task bar by default. Under Mac OS X, this size does not include the menu bar or dock area by default.

Under Windows and Mac OS X, if the optional argument is true, then the task bar, menu bar, and dock area are included in the result.