Just run the application in a new window (shortcut, application), configured to transfer a specific parameter on the command line to your executable file to indicate that the environment should be painted.
For instance, myapp.exe -RunInNewConsole
- , AttachConsole:
[DllImport("kernel32.dll")]
static extern bool AttachConsole(int dwProcessId);
private static bool IsRunningInConsole()
{
return AttachConsole(-1);
}