If you’ve ever looked at windows desktop application source code (shudder) they have all this wacky shit around event handling in their native C/C++ APIs, which is a lot less clean that what you typically see in other languages / platforms which do similar event handling. It wouldn’t surprise me if that shit is hacky and buggy as fuck on the OS side of that implementation too.
So this would be your ctrl-c press event, and whatever handler code.
Though it’s been like 20 years since I looked at some of this. Maybe it’s better now, but somehow I doubt it.
If you’ve ever looked at windows desktop application source code (shudder) they have all this wacky shit around event handling in their native C/C++ APIs, which is a lot less clean that what you typically see in other languages / platforms which do similar event handling. It wouldn’t surprise me if that shit is hacky and buggy as fuck on the OS side of that implementation too.
So this would be your ctrl-c press event, and whatever handler code.
Though it’s been like 20 years since I looked at some of this. Maybe it’s better now, but somehow I doubt it.