Can I send a ctrl-C (SIGINT) to an application on Windows?

Posted by Matthew Murdoch on Stack Overflow See other posts from Stack Overflow or by Matthew Murdoch
Published on 2009-05-01T20:18:50Z Indexed on 2010/03/15 7:59 UTC
Read the original article Hit count: 325

Filed under:
|
|
|

I have (in the past) written cross-platform (Windows/Unix) applications which, when started from the command line, handled a user-typed Ctrl-C combination in the same way (i.e. to terminate the application cleanly).

Is it possible on Windows to send a Ctrl-C/SIGINT/equivalent to a process from another (unrelated) process to request that it terminate cleanly (giving it an opportunity to tidy up resources etc.)?

© Stack Overflow or respective owner

Related posts about sigint

Related posts about signals