Ctrl + C

  • Thread starter Thread starter Alamelu
  • Start date Start date
A

Alamelu

For a command line application,how to handle ctrl + c, so as to do clean up
and then close the application.

I dont want the application to close abruptly on giving ctrl+ c

Regards,
Alamelu
 
For a command line application,how to handle ctrl + c, so as to do clean up
and then close the application.

Have a look at SetConsoleCtrlHandler.

Dave
 
Back
Top