5

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?

Benjamin
  • 10,085
  • 19
  • 80
  • 130

1 Answers1

11

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

rstackhouse
  • 2,238
  • 24
  • 28
Simon Mourier
  • 132,049
  • 21
  • 248
  • 298