What display modes are available?

Heya ppl!
I am coding a OpenGL framework that I want to use to test various OpenGL stuff with and I want it to display a dialog first that lets the user pick a resolution and other stuff. My only problem is how I would determine what display modes (display dimensions and color depth) are available on the gfx-card. For now I try and set all video modes after each other and save what video modes worked. This sucks and might damage gfx-card and/or monitor. So is there a way to determine what modes are available for OpenGL access like display enumeration in DirectX?

try EnumDisplaySettings(…)

Thanks a lot.