3 * Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 PCSTR OptionsMenuList
[] =
25 "Safe Mode with Networking",
26 "Safe Mode with Command Prompt",
30 "Enable Boot Logging",
32 "Last Known Good Configuration",
33 "Directory Services Restore Mode",
45 SAFE_MODE_WITH_NETWORKING
= 1,
46 SAFE_MODE_WITH_COMMAND_PROMPT
= 2,
50 ENABLE_BOOT_LOGGING
= 4,
52 LAST_KNOWN_GOOD_CONFIGURATION
= 6,
53 DIRECTORY_SERVICES_RESTORE_MODE
= 7,
62 ULONG OptionsMenuItemCount
= sizeof(OptionsMenuList
) / sizeof(OptionsMenuList
[0]);
64 VOID
DoOptionsMenu(VOID
)
66 ULONG SelectedMenuItem
;
68 if (!UiDisplayMenu(OptionsMenuList
, OptionsMenuItemCount
, 0, -1, &SelectedMenuItem
, TRUE
, NULL
))
70 // The user pressed ESC
77 switch (SelectedMenuItem
)
81 case SAFE_MODE_WITH_NETWORKING
:
83 case SAFE_MODE_WITH_COMMAND_PROMPT
:
87 case ENABLE_BOOT_LOGGING
:
91 case LAST_KNOWN_GOOD_CONFIGURATION
:
93 case DIRECTORY_SERVICES_RESTORE_MODE
:
100 OptionMenuCustomBoot();
108 VOID
OptionMenuReboot(VOID
)
110 UiMessageBox("The system will now reboot.");
113 DiskStopFloppyMotor();