Can't remember. Search MSDN.com. I can remember that you use SetConsoleTextAttribute to set the fore/background color of the text so maybe that's a starting point.
Heres a link to a quick example im C++: http://support.microsoft.com/default.aspx?scid=kb;en-us;104094
Heres a link to a quick example im C++: http://support.microsoft.com/default.aspx?scid=kb;en-us;104094