mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user