getting Screen resolution in Carbon

I have an openGL app that can switch from window/fullscreen,and when
switching i need to resize my openGL viewport to match the new window resolution
(which will be the screen res as i don't change mode), so I need to find
out the screen resolution, any idea ?

I checked SWAP_AREA or RECT_AREA etc but they're not returning the
correct values ...