- Notifications
You must be signed in to change notification settings - Fork0
collinstevens/win32-ctrl-c
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Demonstrate an application on Windows using /SUBSYSTEM:WINDOWS which is spawned from the command line and then closed from the command line by CTRL-C or CTRL-BREAK.
Seehttps://learn.microsoft.com/en-us/windows/console/setconsolectrlhandler for registering the pseudo "Console" message pump to process CTRL-* events.
Seehttps://learn.microsoft.com/en-us/windows/console/handlerroutine for the details of the message pump routine.
Not used here, but seehttps://learn.microsoft.com/en-us/windows/console/generateconsolectrlevent for an example of sending CTRL-* events to process groups.
Seehttps://learn.microsoft.com/en-us/windows/win32/learnwin32/your-first-windows-program to create a Win32 application.
Inspired byelectron/electron#5273.
About
/SUBSYSTEM:WINDOWS Win32 application attaching to parent console and closing on CTRL-C/CTRL-BREAK
Resources
Uh oh!
There was an error while loading.Please reload this page.