I was recently going thru some source code to try and pinpoint how to change the text colour in dos, anyways so this is what i found...
Iv'e got a fair idea of whas going on here, but if someone could explain to me the hows and why's of this code that would be awsome.
#include <windows.h> // <---*THIS IS THE REQUIRED HEADER FILE FOR IT TOO WORK
HANDLE h = GetStdHandle ( STD_OUTPUT_HANDLE );
wOldColorAttrs = csbiInfo.wAttributes;
SetConsoleTextAttribute ( h, FOREGROUND_RED | FOREGROUND_INTENSITY ); //Set the new color information
printf("TEXT"); //*THESE LINES PRINT THE TEXT
-Curtosy Author of 'Adventures Of You'