HANDLE hConsoleW, hConsoleR;
enum Color { black = 0, blue, green, cyan, red, purple, yellow, grey, dgrey, lblue, lgreen, lcyan, lred, lpurple, lyellow, white};
AllocConsole();
SetConsoleTitle(_T("Some title"));
hConsoleW = GetStdHandle(STD_OUTPUT_HANDLE);
hConsoleR = GetStdHandle(STD_INPUT_HANDLE);
void ConsoleOutput(TCHAR* lpszMessage, Color color = white){
int len = wcslen(lpszMessage);
DWORD numOfCharWritten;
SetConsoleTextAttribute(hConsoleW, color);
WriteConsole(hConsoleW, lpszMessage, len, &numOfCharWritten, NULL);
}