[SERVICES]
[reactos.git] / reactos / base / system / services / services.c
index 4163a3c..a288baf 100644 (file)
@@ -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();