mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[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:
parent
02bd6eebde
commit
fb22c97c91
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue