CTRL+C and CTRL+Break are different?

耗尽温柔 提交于 2019-12-12 12:17:48

问题


I've thought they are definitly same.
But I just found some values CTRL_C_EVENT and CTRL_BREAK_EVENT at SetConsoleCtrlhandler function.

Is there a difference?


回答1:


See the official documentation here: CTRL+C and CTRL+BREAK Signals

I quote:

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



来源:https://stackoverflow.com/questions/5056567/ctrlc-and-ctrlbreak-are-different

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!