Beispiel #1
0
 public static extern bool SetConsoleCtrlHandler(CtrlEventDelegate callback, bool add);
Beispiel #2
0
 public static void RegisterCtrlEventFunction(CtrlEventDelegate function)
 {
     Interop.ConsoleApi.SetConsoleCtrlHandler(function, true);
 }