From f5d1d7e5b172cc32b5693295d8b7df1e3aee9ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 16 Jun 2014 00:49:28 +0000 Subject: [PATCH] [SERVICES] The SCM also sets a shutdown level, lower than the default value for programs (this was cross-checked with Windows 2k3, the value chosen is for compatibility purposes). svn path=/trunk/; revision=63604 --- reactos/base/system/services/services.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/base/system/services/services.c b/reactos/base/system/services/services.c index 4163a3c7a01..a288baf5226 100644 --- a/reactos/base/system/services/services.c +++ b/reactos/base/system/services/services.c @@ -402,6 +402,12 @@ wWinMain(HINSTANCE hInstance, /* Register event handler (used for system shutdown) */ SetConsoleCtrlHandler(ShutdownHandlerRoutine, TRUE); + /* + * Set our shutdown parameters: we want to shutdown after the maintained + * services (that inherit the default shutdown level of 640). + */ + SetProcessShutdownParameters(480, SHUTDOWN_NORETRY); + /* Start auto-start services */ ScmAutoStartServices();