我认为它们绝对相同。
但我刚刚在 SetConsoleCtrlhandler 找到了一些值 CTRL_C_EVENT 和 CTRL_BREAK_EVENT功能。
有区别吗?
最佳答案
请在此处查看官方文档:CTRL+C and CTRL+BREAK Signals
我引用:
CTRL+BREAK is always treated as a signal, but an application can change the default CTRL+C behavior in two ways that prevent the handler functions from being called
关于windows - CTRL+C 和 CTRL+Break 有什么不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5056567/