static Program() { Program.cancelHandler = new Program.ControlCtrlDelegate(Program.HandlerRoutine); }
private static extern bool SetConsoleCtrlHandler(Program.ControlCtrlDelegate HandlerRoutine, bool Add);