* This is not a duplicate question. The other question title does not match its body! The other question title should be: "how do you send a SIGINT from one Windows process to another". It has nothing to do with Ctrl-C and he IS using Console applications. *
I have a normal windows application, it is not using MFC nor is it a console application. I need the typing of CTRL-C to send SIGINT to my program rather than a KEYDOWN event. From my testing this does not seem to just happen by default. How do I tell Windows (7) to send my process SIGINT when someone types CTRL-C when my application window has the focus?
The closest thing I found was SetConsoleCtrlHandler(null, false); but that doesn't work, probably because it isn't a console application.
The answer may be to make it a console application with an invisible console. But I do not know what the implications of that would be to my current code. I am hoping there are a simple couple of calls that set this up without going full console?