The Console Control Handlers are not intended to be used for "normal" input. They handle a set of special key combinations and Windows signals to terminate the console application. If you need to act upon a special key combination choose one that is not reserved and handle it using normal input techniques (e.g.
Console.KeyAvailable
and
Console.ReadKey
).
Quote:
BTW, what does it mean when there is no value after the flag. ie CTRL_BREAK_EVENT = 1,
When no value is specified, the value of the previous enumerator plus one is assigned. When there is no value for the first enumerator, zero is assigned. See
enum (C# Reference)[
^].