mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
[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:
parent
fc8ed44177
commit
f5d1d7e5b1
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue