303 ULONG OperatingSystemCount;
305 PCSTR* OperatingSystemDisplayNames;
306 ULONG DefaultOperatingSystem;
307 ULONG SelectedOperatingSystem;
351 &OperatingSystemCount,
352 &DefaultOperatingSystem);
353 if (!OperatingSystemList)
355 UiMessageBox(
"Unable to read operating systems section in freeldr.ini.\nPress ENTER to reboot.");
358 if (OperatingSystemCount == 0)
360 UiMessageBox(
"There were no operating systems listed in freeldr.ini.\nPress ENTER to reboot.");
365 OperatingSystemDisplayNames =
FrLdrTempAlloc(
sizeof(
PCSTR) * OperatingSystemCount,
'mNSO');
366 if (!OperatingSystemDisplayNames)
369 for (
i = 0;
i < OperatingSystemCount;
i++)
383 if (!
UiDisplayMenu(
"Please select the operating system to start:",
384 "For troubleshooting and advanced startup options for " 385 "ReactOS, press F8.",
387 OperatingSystemDisplayNames,
388 OperatingSystemCount,
389 DefaultOperatingSystem,
391 &SelectedOperatingSystem,
394 OperatingSystemList))
static LONG GetTimeOut(IN ULONG_PTR FrLdrSectionId)
#define DebugInit(FrLdrSectionId)
ULONG LoadBootDeviceDriver(VOID)
BOOLEAN UiDisplayMenu(IN PCSTR MenuHeader, IN PCSTR MenuFooter OPTIONAL, IN BOOLEAN ShowBootOptions, IN PCSTR MenuItemList[], IN ULONG MenuItemCount, IN ULONG DefaultMenuItem, IN LONG MenuTimeOut, OUT PULONG SelectedMenuItem, IN BOOLEAN CanEscape, IN UiMenuKeyPressFilterCallback KeyPressFilter OPTIONAL, IN PVOID Context OPTIONAL)
#define MachInitializeBootDevices()
VOID UiMessageBox(PCSTR Format,...)
FORCEINLINE PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
BOOLEAN IniOpenSection(PCSTR SectionName, ULONG_PTR *SectionId)
VOID UiShowMessageBoxesInSection(IN ULONG_PTR SectionId)
VOID UiUnInitialize(PCSTR BootText)
VOID UiDrawBackdrop(VOID)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOLEAN UiInitialize(BOOLEAN ShowUi)
BOOLEAN IniFileInitialize(VOID)
VOID LoadOperatingSystem(IN OperatingSystemItem *OperatingSystem)
OperatingSystemItem * InitOperatingSystemList(IN ULONG_PTR FrLdrSectionId, OUT PULONG OperatingSystemCount, OUT PULONG DefaultOperatingSystem)
VOID(* UnInitialize)(VOID)
BOOLEAN MainBootMenuKeyPressFilter(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
VOID UiMessageBoxCritical(PCSTR MessageText)