If I have a console application, how can I determine if standard output
points to the actual console, or has been redirected?
In plain C this could be achieved with _isatty() function,
and, to some extent with Win32 GetFileType() function.
Ivan