问题
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