could someone please tell me if there is a way to get
the handle for the dos console window if a program
is run from the command line instead of from windows?
I want to build a console app (as per the console
tutorial on this site) but want the output to appear
in the dos window that it is run from instead of
in a new console. also, how can i design it so that if
the program was NOT run from a dos console that it will
open a new console window to perform its actions?