CTRL + C和CTRL + Break是不同的? [英] CTRL+C and CTRL+Break are different?
本文介绍了CTRL + C和CTRL + Break是不同的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我认为他们是完全一样的。
但我刚刚在 SetConsoleCtrlhandler 函数。
I've thought they are definitly same.
But I just found some values CTRL_C_EVENT and CTRL_BREAK_EVENT at SetConsoleCtrlhandler function.
是否有区别?
推荐答案
请参阅官方文档: CTRL + C 和 CTRL + <信号
See the official documentation here: CTRL+C and CTRL+BREAK Signals
我引述:
CTRL + BREAK 始终被视为
信号,但应用程序可以更改默认的 CTRL + C 行为在两个
方式阻止处理程序
函数被调用
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
这篇关于CTRL + C和CTRL + Break是不同的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文