get-display-size in Global Graphics and Screen

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

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