Is there an API can get front buffer's pxiels format?

Hi,all:
I’m a beginner.
I want to get front buffer’s pxiels format and type,what’s API should I choose?
thanks

Not in OpenGL. For Windows, the function is EnumDisplaySettings.
EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, lpDevMode);