685{
687 ULONG_PTR SectionId = OperatingSystem->SectionId;
688 CHAR SectionName[100];
689 CHAR BootDriveString[20];
690 CHAR BootPartitionString[20];
691 CHAR ReactOSSystemPath[200];
692 CHAR ReactOSARCPath[200];
693 CHAR ReactOSOptions[200];
694
697 RtlZeroMemory(BootPartitionString,
sizeof(BootPartitionString));
701
702 if (SectionId != 0)
703 {
704
707 }
708
709 if (SectionId == 0)
710 {
712 return;
713
715 return;
716
718 return;
719 }
720 else
721 {
723 return;
724 }
725
727 return;
728
729
730 if (SectionId != 0)
731 {
734 return;
735 }
736
737
740 "CustomReactOS%u%u%u%u%u%u",
743
744
746 return;
747
748
750 return;
751
752
755 atoi(BootPartitionString));
756
757
759 return;
760
761
763 return;
764
765 OperatingSystem->SectionId = SectionId;
766 OperatingSystem->LoadIdentifier =
NULL;
767}
TIMEINFO * ArcGetTime(VOID)
VOID ConstructArcPath(PCHAR ArcPath, PCHAR SystemFolder, UCHAR Disk, ULONG Partition)
const PCSTR BootPartitionPrompt
const PCSTR ReactOSSetupOptionsPrompt
const PCSTR ReactOSSystemPathPrompt
const PCSTR BootDrivePrompt
const PCSTR ReactOSOptionsPrompt
#define DriveMapGetBiosDriveNumber(DeviceName)
BOOLEAN UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
BOOLEAN IniAddSection(PCSTR SectionName, ULONG_PTR *SectionId)
BOOLEAN IniAddSettingValueToSection(ULONG_PTR SectionId, PCSTR SettingName, PCSTR SettingValue)
BOOLEAN IniModifySettingValue(ULONG_PTR SectionId, PCSTR SettingName, PCSTR SettingValue)
BOOLEAN IniReadSettingByName(ULONG_PTR SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize)
NTSTRSAFEVAPI RtlStringCbPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat,...)
#define RtlZeroMemory(Destination, Length)