DOS Console Device Input and Output

   The DOS CON device is always open as handle number 0 for input as STDIN and
handle 1 for Output as STDOUT unless input or output has been redirected. DOS
always maintains handle number 2 for output to the console as STDERR.
Redirection can be detected using INT\21F\44SF\00