How can I get the size of display?

I want to make multi-resolutional application (for 320x240 and 640x480), but can't find anything about determining the size of display at runetime by means of GledPlay.
Must I use Win32 features for this?
Must I use Win32 features for this?