How do I get the size of a DC? Width and height?

I've tried GetObject Windows API without sucess. =(