Comment

Comment by muststopmyths

Console applications, which do not have win32 windows with message pumps can be closed with alt-f4.

For GUI apps it sends a WM_CLOSE, because that's they way to "close" a GUI application.

For console applications it sends a message through the "Console control handler". Which the console subsystem no longer lets the application properly handle and kills the process summarily anyway.

Note that I keep saying "application" because that has been the terminology in windows forever. "GUI apps" and "console apps" were a thing before mobile.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton