internal static extern bool SetConsoleCtrlHandler(HandlerRountine handlerRountine, bool add);
public static void Init(HandlerRountine handlerRountine) { _handlerRountine = handlerRountine; SetConsoleCtrlHandler(_handlerRountine, true); DisableConsoleClose(); }