Reputation: 2035
Is there a windows API to get the number of colors currently set on the display settings? What I mean is, if you look at the windows display setting you might get something like:
resolution: 1280x800 colors: 1,000,000
I am using a call to WMI (Win32_VideoController) and get them from there, but I can't use this since the program cannot use WMI.
Is there an API or other way (the registry maybe?) to get the number of colors the system supports?
code is appreciated, thanks!
Upvotes: 1
Views: 203
Reputation: 74654
GetDeviceCaps
with the BITSPIXEL
option is what you're looking for
Upvotes: 2