There has been quite some discussion in the messages about the complexity of sending a command like 'Control C' to a cmd process in the console window. Just so that others can find the solution until something formal is actually published, VisualG seems to have a good solution which you can find here:
Ctrl-C http://msdn.microsoft.com/en-us/library/windows/desktop/ms683155(v=vs.85).aspx
Also:
There has been quite some discussion in the messages about the complexity of sending a command like 'Control C' to a cmd process in the console window. Just so that others can find the solution until something formal is actually published, VisualG seems to have a good solution which you can find here:
http://www.codeproject.com/Articles/335909/Embedding-a-Console-in-a-C-Application?msg=4320232#xx4320232xx