Problems with icons having more colors than 16

How do I detect is user's OS capable of showing icons with more colors than
16 and change the icons to 16 colors if not?

Or how do I make 2 icons for application, other with 16 colors and other
with more so the OS displays the one it can?

Thanks in advance of help.
--
Michel Cruz Font
Software Developer
NetGen Oy
http://www.netgen.fi (Finnish only)
nospam_michel.cruz.f...@netgen.fi
ICQ : 4691029
(please remove "nospam_" when replying via e-mail)