Archived

This topic is now archived and is closed to further replies.

Getting Desktop Color Depth.

This topic is 5114 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know this has been asked before, in fact I''m almost positive that it''s been asked many times... but every time I try to search for something the script keeps erroring out on me. So... I guess I''ll have to be another statistic. Is there a Win32 function for obtaining the color depth of the desktop? I''ve got the resolution via GetSystemMetrics(), but I can''t find anything that would pull the color depth. Thanks.

I know only that which I know, but I do not know what I know.

Share this post


Link to post
Share on other sites
Call EnumDisplaySettings with the ENUM_CURRENT_SETTINGS or ENUM_REGISTRY_SETTINGS flag to get the resolution, bitdepth, display frequency, and a whole load of other info.

Share this post


Link to post
Share on other sites