489{
491 ULONG_PTR SectionId = OperatingSystem->SectionId;
492 CHAR SectionName[100];
493 CHAR BootDriveString[20];
494 CHAR BootPartitionString[20];
495 CHAR ReactOSSystemPath[200];
496 CHAR ReactOSARCPath[200];
497 CHAR ReactOSOptions[200];
498
501 RtlZeroMemory(BootPartitionString,
sizeof(BootPartitionString));
505
506 if (SectionId != 0)
507 {
508
511 }
512
513 if (SectionId == 0)
514 {
516 return;
517
519 return;
520
522 return;
523 }
524 else
525 {
527 return;
528 }
529
531 return;
532
533
534 if (SectionId != 0)
535 {
538 return;
539 }
540
541
544 "CustomReactOS%u%u%u%u%u%u",
547
548
550 return;
551
552
554 return;
555
556
559 atoi(BootPartitionString));
560
561
563 return;
564
565
567 return;
568
569 OperatingSystem->SectionId = SectionId;
570 OperatingSystem->LoadIdentifier =
NULL;
571}
TIMEINFO * ArcGetTime(VOID)
VOID ConstructArcPath(PCHAR ArcPath, PCHAR SystemFolder, UCHAR Disk, ULONG Partition)
static const PCSTR BootPartitionPrompt
static const PCSTR ReactOSSetupOptionsPrompt
static const PCSTR ReactOSSystemPathPrompt
static const PCSTR BootDrivePrompt
static const PCSTR ReactOSOptionsPrompt
#define DriveMapGetBiosDriveNumber(DeviceName)
BOOLEAN UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
PINI_SECTION IniAddSection(_In_ PINICACHE Cache, _In_ PCWSTR Name)
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)