Why is HandlerRoutine not called when “End Task” is clicked in Task Manager, even though the docs state it should work?

前端 未结 0 1352
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 05:08

My .NET 5 console application registers a HandlerRoutine by using SetConsoleCtrlHandler, so it can do some cleanup before exiting. This allows me to react to CTRL+C

相关标签:
回答
  • 消灭零回复
提交回复
热议问题