Author: hbelusca
Date: Mon Jun 16 00:49:28 2014
New Revision: 63604
URL: http://svn.reactos.org/svn/reactos?rev=63604&view=rev
Log:
[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).
Modified:
trunk/reactos/base/system/services/services.c
Modified: trunk/reactos/base/system/services/services.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/services.c?rev=63604&r1=63603&r2=63604&view=diff
==============================================================================
--- trunk/reactos/base/system/services/services.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/services.c [iso-8859-1] Mon Jun 16
00:49:28 2014
@@ -402,6 +402,12 @@
/* 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();