[EXPLORER][EXPLORER_NEW]

[TASKMGR]
Set a proper shutdown level (with SetProcessShutdownParameters) so that explorer and taskmgr are terminated the very last when one shutdowns ReactOS.
See Windows Internals 4th page 286 (section "Shutdown") which gives the values (that I've cross-checked on Windows 2k3 too).

svn path=/branches/shell-experiments/; revision=63601
This commit is contained in:
Hermès Bélusca-Maïto 2014-06-15 20:02:26 +00:00
parent 02bd6eebde
commit fb22c97c91

View file

@ -407,6 +407,12 @@ _tWinMain(IN HINSTANCE hInstance,
InitCommonControls();
OleInitialize(NULL);
/*
* Set our shutdown parameters: we want to shutdown the very last,
* but before any TaskMgr instance (which has a shutdown level of 1).
*/
SetProcessShutdownParameters(2, 0);
ProcessStartupItems();
if (GetShellWindow() == NULL)