How do I detect if desktop is 256 color?

BlitzMax Forums/BlitzMax Programming/How do I detect if desktop is 256 color?

If you could get a pointer to the memory set aside for the buffer, could you see how big it is?