[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
This commit is contained in:
Hermès Bélusca-Maïto 2014-06-16 00:49:28 +00:00
parent fc8ed44177
commit f5d1d7e5b1

View 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();