488{
490 ULONG_PTR SectionId = OperatingSystem->SectionId;
491 CHAR SectionName[100];
492 CHAR BootDriveString[20];
493 CHAR BootPartitionString[20];
494 CHAR ReactOSSystemPath[200];
495 CHAR ReactOSARCPath[200];
496 CHAR ReactOSOptions[200];
497
500 RtlZeroMemory(BootPartitionString,
sizeof(BootPartitionString));
504
505 if (SectionId != 0)
506 {
507
510 }
511
512 if (SectionId == 0)
513 {
515 return;
516
518 return;
519
521 return;
522 }
523 else
524 {
526 return;
527 }
528
530 return;
531
532
533 if (SectionId != 0)
534 {
537 return;
538 }
539
540
543 "CustomReactOS%u%u%u%u%u%u",
546
547
549 return;
550
551
553 return;
554
555
558 atoi(BootPartitionString));
559
560
562 return;
563
564
566 return;
567
568 OperatingSystem->SectionId = SectionId;
569 OperatingSystem->LoadIdentifier =
NULL;
570}
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)