However I want to replace those constants with variables defined by the current desktop resolution. I can use:
int xres = GetSystemMetrics(SM_CXFULLSCREEN);
int yres = GetSystemMetrics(SM_CYFULLSCREEN);
to find out the desktop resolution but I’d like to know how to determine the desktop color depth or alternatively get OpenGL to automatically use the highest color depth the card supports.