コード例 #1
0
        internal static void ResetExitHandlers()
        {
            Win32.SetConsoleCtrlHandler(registeredHandler, false);
            Win32.SetConsoleCtrlHandler(registeredHandler, true);
            WinHttp.SetPeekMessageHook(PeekMessageHook);

            AppDomain.CurrentDomain.ProcessExit -= OnProcessExit;
            AppDomain.CurrentDomain.ProcessExit += OnProcessExit;
        }
コード例 #2
0
 internal static void ResetExitHandlers()
 {
     Win32.SetConsoleCtrlHandler(registeredHandler, false);
     Win32.SetConsoleCtrlHandler(registeredHandler, true);
     WinHttp.SetPeekMessageHook(PeekMessageHook);
 }
コード例 #3
0
 private static void Reset(object sender, EventArgs e)
 {
     Win32.SetConsoleCtrlHandler(registeredHandler, false);
     WinHttp.SetPeekMessageHook(null);
 }
コード例 #4
0
 private static void OnProcessExit(object sender, EventArgs args)
 {
     WinHttp.SetIgnoreUnhandledExceptions(true);
 }