Group: Console - Library: kernel32
The SetConsoleTextAttribute function sets the attributes of characters written to the console screen buffer by the WriteFile or WriteConsole function, or echoed by the ReadFile or ReadConsole function.
Creating a console window for Visual FoxPro application
BOOL SetConsoleTextAttribute(
HANDLE hConsoleOutput,
WORD wAttributes
);
DECLARE INTEGER SetConsoleTextAttribute IN kernel32;
INTEGER hConsoleOutput,;
SHORT wAttributes
hConsoleOutput [in] Handle to a console screen buffer.
wAttributes [in] Character attributes.
If the function succeeds, the return value is nonzero.
This function affects text written after the function call.