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

前端 未结 0 1346
没有蜡笔的小新
没有蜡笔的小新 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

相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题