In this article, they noticed color depth should be 24-bit or less.
How can I get and set color depth of user's pc and then after closing
program restore that.
I think I need to do something like this algorithm:
1) get color depth by using registery. (in what address?)
2) if value is more than 24-bit go to next line else exit
3) tempColorDepth = RelatedRegisteryKeyValue
4) RelatedRegisteryKeyValue=24-bit
5) when program closed set RelatedRegisteryKey=tempColorDepth
Is this a good algorithm?
What if user closes the program abnormaly? (ctrl+alt+delete, restart
computer, ...)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.