Здравствуйте, Selectron, Вы писали:
S>Вроде можно...
S>Как я понял из МСДН, нужно получить ук-ль на STARTUPINFO и установить соответствующие поля в нужное значение....
S>...
S>dwFillAttribute
S>Ignored unless dwFlags specifies STARTF_USEFILLATTRIBUTE. Specifies the initial text and background colors if a new console window is created in a console application. These values are ignored in GUI applications. This value can be any combination of the following values: FOREGROUND_BLUE, FOREGROUND_GREEN, FOREGROUND_RED, FOREGROUND_INTENSITY, BACKGROUND_BLUE, BACKGROUND_GREEN, BACKGROUND_RED, and BACKGROUND_INTENSITY. For example, the following combination of values produces red text on a white background:
S>FOREGROUND_RED| BACKGROUND_RED| BACKGROUND_GREEN| BACKGROUND_BLUE
S>...
S>Уважаемые Гуру, поправьте меня, если я не прав в своих догадках...
S>
The STARTUPINFO structure is used with the CreateProcess function to specify main window properties if a new window is created for the new process.
...
For console processes, this information affects the console window if a new console is created for the process.
А мне нужно изменить эти параметры в консольном приложении, который не создан как новый процесс.