Questions about win32 console App.
-
Background. I have an App. written by me, that is a win32 console App. It does some processing and produces some console output, as they usually do. Now, I am quite happy with the output, as its simply a dump of some data. But, I have developed a GUI which ShellExeceuteEx's the console App as the user requires. So, I can have many instances of the console App running at the same time. I would like to know if it is possible, that when the user presses the keyboard pause key, only the console window with the focus is paused. At the moment thay all get paused, which of course is expected. I have looked around and I can not find any general solution. My only idea is to create a keyboard hook DLL, test if the main window focus is on one of the spawned console Apps and to issue a pause/suspend against that thread. If anyone knows of a better or any other elegant solution I would be interested to know. Oh, and one more question. Does anyone know how to specify which font is used for Stdout for a console application. Thanks. James.