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 along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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",
38 #ifdef HAS_OPTION_MENU_CUSTOM_BOOT
41 #ifdef HAS_OPTION_MENU_REBOOT
49 SAFE_MODE_WITH_NETWORKING
= 1,
50 SAFE_MODE_WITH_COMMAND_PROMPT
= 2,
54 ENABLE_BOOT_LOGGING
= 4,
56 LAST_KNOWN_GOOD_CONFIGURATION
= 6,
57 DIRECTORY_SERVICES_RESTORE_MODE
= 7,
62 #ifdef HAS_OPTION_MENU_CUSTOM_BOOT
65 #ifdef HAS_OPTION_MENU_REBOOT
70 ULONG OptionsMenuItemCount
= sizeof(OptionsMenuList
) / sizeof(OptionsMenuList
[0]);
72 VOID
DoOptionsMenu(VOID
)
74 ULONG SelectedMenuItem
;
76 if (!UiDisplayMenu(OptionsMenuList
, OptionsMenuItemCount
, 0, -1, &SelectedMenuItem
, TRUE
, NULL
))
78 // The user pressed ESC
85 switch (SelectedMenuItem
)
89 case SAFE_MODE_WITH_NETWORKING
:
91 case SAFE_MODE_WITH_COMMAND_PROMPT
:
95 case ENABLE_BOOT_LOGGING
:
99 case LAST_KNOWN_GOOD_CONFIGURATION
:
101 case DIRECTORY_SERVICES_RESTORE_MODE
:
107 #ifdef HAS_OPTION_MENU_CUSTOM_BOOT
109 OptionMenuCustomBoot();
112 #ifdef HAS_OPTION_MENU_REBOOT