Possible Duplicate:
Can I send a ctrl-C (SIGINT) to an application on Windows?
How to effectively kill a process in C++ (Win32)?
C++ Sending a simple signal in Windows
I have a java console application, this application starts to shutdown when I press CTRLC. Could you please tell me, how I can simulate pressing CTRLC from my C++ application if I know only pid and have process handle?
As I understood, I must send SIGINT
signal to process, how can I do it?
p.s. Solutions on SO are not working!
Thanks!