How to send Ctrl-C event to childprocess
Posted on 2001-09-07
I use CreateProcess() to create a new console process.I want to send Ctrl-C event to the child process to stop the child.
I have tried GenerateConsoleCtrlEvent(), but it always returned ERROR_INVALID_HANDLE error.
can anybody give me the right answer.