622{
624 ULONG_PTR SectionId = OperatingSystem->SectionId;
625 CHAR SectionName[100];
626 CHAR BootDriveString[20];
627 CHAR BootPartitionString[20];
628 CHAR ReactOSSystemPath[200];
629 CHAR ReactOSARCPath[200];
630 CHAR ReactOSOptions[200];
631
634 RtlZeroMemory(BootPartitionString,
sizeof(BootPartitionString));
638
639 if (SectionId != 0)
640 {
641
644 }
645
646 if (SectionId == 0)
647 {
649 return;
650
652 return;
653
655 return;
656 }
657 else
658 {
660 return;
661 }
662
664 return;
665
666
667 if (SectionId != 0)
668 {
671 return;
672 }
673
674
677 "CustomReactOS%u%u%u%u%u%u",
680
681
683 return;
684
685
687 return;
688
689
692 atoi(BootPartitionString));
693
694
696 return;
697
698
700 return;
701
702 OperatingSystem->SectionId = SectionId;
703 OperatingSystem->LoadIdentifier =
NULL;
704}
TIMEINFO * ArcGetTime(VOID)
VOID ConstructArcPath(PCHAR ArcPath, PCHAR SystemFolder, UCHAR Disk, ULONG Partition)
const CHAR ReactOSSystemPathPrompt[]
const CHAR BootDrivePrompt[]
const CHAR ReactOSOptionsPrompt[]
const CHAR ReactOSSetupOptionsPrompt[]
const CHAR BootPartitionPrompt[]
#define DriveMapGetBiosDriveNumber(DeviceName)
_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)
BOOLEAN UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)