From a57cc3b82aa9990c7de4fe33b8e71f937984a53d Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 17 Feb 2004 20:20:01 +0000 Subject: [PATCH] disable autostart if the SHIFT key is pressed svn path=/trunk/; revision=8223 --- reactos/subsys/system/explorer/doc/changes.txt | 3 ++- reactos/subsys/system/explorer/explorer.cpp | 4 ++++ reactos/subsys/system/explorer/taskbar/startmenu.cpp | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/explorer/doc/changes.txt b/reactos/subsys/system/explorer/doc/changes.txt index cf77c591a0f..6c1b4fe15ad 100644 --- a/reactos/subsys/system/explorer/doc/changes.txt +++ b/reactos/subsys/system/explorer/doc/changes.txt @@ -61,4 +61,5 @@ If you search for more information, look into the CVS repository. 31.01.2004 m. fuchs included Registry as virtual file system 02.02.2004 m. fuchs reading of FAT image files 07.02.2004 m. fuchs included IE/Mozilla as Active X control -08.02.3004 m. fuchs desktop switching +08.02.2003 m. fuchs desktop switching +16.02.200 m. fuchs lean explorer version without additional bells and whistles -> see CVS branch "lean-explorer" diff --git a/reactos/subsys/system/explorer/explorer.cpp b/reactos/subsys/system/explorer/explorer.cpp index 0b7fa95bb41..a39a2e8482b 100644 --- a/reactos/subsys/system/explorer/explorer.cpp +++ b/reactos/subsys/system/explorer/explorer.cpp @@ -625,6 +625,10 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL bool autostart = true; + // disable autostart if the SHIFT key is pressed + if (GetAsyncKeyState(VK_SHIFT) < 0) + autostart = false; + #ifdef _DEBUG //MF: disabled for debugging autostart = false; #endif diff --git a/reactos/subsys/system/explorer/taskbar/startmenu.cpp b/reactos/subsys/system/explorer/taskbar/startmenu.cpp index 48a76c9ac3e..fcb71556b79 100644 --- a/reactos/subsys/system/explorer/taskbar/startmenu.cpp +++ b/reactos/subsys/system/explorer/taskbar/startmenu.cpp @@ -1597,7 +1597,7 @@ int StartMenuHandler::Command(int id, int code) case IDC_CONTROL_PANEL: CloseStartMenu(id); - MainFrame::Create(TEXT("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}"), FALSE); + MainFrame::Create(TEXT("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}"), 0); break; case IDC_ADMIN: