mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +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) */
|
/* Register event handler (used for system shutdown) */
|
||||||
SetConsoleCtrlHandler(ShutdownHandlerRoutine, TRUE);
|
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 */
|
/* Start auto-start services */
|
||||||
ScmAutoStartServices();
|
ScmAutoStartServices();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue