108 DPRINT(
"mingliu.ttc found\n");
113 DPRINT(
"msgothic.ttc found\n");
118 DPRINT(
"msmincho.ttc found\n");
123 DPRINT(
"mssong.ttf found\n");
131 DPRINT(
"simsun.ttc found\n");
136 DPRINT(
"gulim.ttc found\n");
141 DPRINT(
"batang.ttc found\n");
197 coPos.
X = xLeft +
Width - 1;
206 for (coPos.
Y = yTop + 1; coPos.
Y < yTop +
Height - 1; coPos.
Y++)
222 coPos.
X = xLeft +
Width - 1;
249 coPos.
X = xLeft +
Width - 1;
318 Width = MaxLength + 4;
330 for (coPos.
Y = yTop; coPos.
Y < yTop +
Height; coPos.
Y++)
394 coPos.
X = xLeft +
Width - 1;
478 if (pszNewLayout !=
NULL)
730 DPRINT1(
"The user-mode PnP manager could not initialize, expect unavailable devices!\n");
734 DPRINT1(
"WaitNoPendingInstallEvents() failed to wait!\n");
951 DPRINT1(
"Failed to get a list of NTOS installations; continue installation...\n");
1045 DPRINT1(
"Selected installation for repair: \"%S\" ; DiskNumber = %d , PartitionNumber = %d\n",
1155 return SCSI_CONTROLLER_PAGE;
1187 return OEM_DRIVER_PAGE;
1289 else if (
Line == 16)
1303 else if (
Line == 16)
1322 else if (
Line == 12)
1324 else if (
Line == 13)
1326 else if (
Line == 14)
1328 else if (
Line == 16)
1577 DPRINT1(
"RepairUpdateFlag == TRUE, SelectPartition() returned FALSE, assert!\n");
1720 PopupError(
"The disk you have selected for installing ReactOS\n"
1721 "is not visible by the firmware of your computer,\n"
1722 "and so may not be bootable.\n"
1723 "Press ENTER to continue nonetheless.",
1806 L"\\Device\\Harddisk%lu\\Partition%lu\\",
1837#define PARTITION_SIZE_INPUT_FIELD_LENGTH 9
1839#define PARTITION_MAXSIZE (pow(10, (PARTITION_SIZE_INPUT_FIELD_LENGTH - 1)) - 1)
2001 if ((ch >=
L'0') && (ch <=
L'9'))
2047 CHAR LineBuffer[100];
2105 if (PartSize > MaxSize)
2109 if (PartSize == MaxSize)
2124 DPRINT(
"Partition size: %I64u bytes\n", PartSize);
2204 CHAR LineBuffer[100];
2288 CHAR LineBuffer[100];
2290 DPRINT(
"SelectFileSystemPage()\n");
2318 DPRINT1(
"We are using a different system partition!!!!\n");
2378 PopupError(
"The ReactOS Setup could not find a supported system partition\n"
2379 "on your system or could not create a new one. Without such partition\n"
2380 "the Setup program cannot install ReactOS.\n"
2381 "Press ENTER to return to the partition selection list.",
2410 DPRINT(
"WritePartitionsToDisk() failed\n");
2466 DPRINT1(
"FormatState: Start --> FormatSystemPartition\n");
2484 DPRINT1(
"FormatState: Start --> FormatInstallPartition\n");
2495 DPRINT1(
"FormatState: FormatSystemPartition --> FormatInstallPartition\n");
2510 DPRINT1(
"FormatState: FormatInstallPartition --> FormatOtherPartition\n");
2512 DPRINT1(
"FormatState: FormatOtherPartition --> FormatOtherPartition\n");
2519 DPRINT1(
"FormatState: FormatInstallPartition --> FormatDone\n");
2521 DPRINT1(
"FormatState: FormatOtherPartition --> FormatDone\n");
2530 DPRINT1(
"FormatState: FormatDone\n");
2555 else if (PartEntry->
New)
2602 DefaultFs =
L"BTRFS";
2732 DPRINT(
"FormatPartitionPage()\n");
2808 "Setup is currently unable to format a partition in %S.\n"
2810 " \x07 Press ENTER to continue Setup.\n"
2811 " \x07 Press F3 to quit Setup.",
2846 L"\\Device\\Harddisk%lu\\Partition%lu",
2899 DPRINT1(
"CheckFileSystemPage -- PartitionType: 0x%02X ; FileSystem: %S\n",
2923 "Setup is currently unable to check a partition formatted in %S.\n"
2925 " \x07 Press ENTER to continue Setup.\n"
2926 " \x07 Press F3 to quit Setup.",
2957 "ChkDsk detected some disk errors.\n(Status 0x%08lx).\n",
2989 if (InstallDir[
Length - 1] ==
L'\\')
3002 if (InstallDir[
i] ==
L'\\' &&
i > 0)
3004 if (InstallDir[
i - 1] ==
L'.')
3009 if (InstallDir[
Length - 1] ==
L'.')
3049 wcscpy(InstallDir,
L"\\ReactOS");
3063 DPRINT1(
"InitDestinationPaths() failed: Status 0x%lx\n",
Status);
3111 &InstallDir[
Pos + 1],
3167 DPRINT1(
"InitDestinationPaths() failed: Status 0x%lx\n",
Status);
3213 InstallDir[
Pos] =
c;
3325 PCWSTR SrcFileName, DstFileName;
3351 if (DstFileName) ++DstFileName;
3352 else DstFileName = FilePathInfo->
Target;
3363 if (SrcFileName) ++SrcFileName;
3364 else SrcFileName = FilePathInfo->
Source;
3367 if (DstFileName) ++DstFileName;
3368 else DstFileName = FilePathInfo->
Target;
3370 if (!
wcsicmp(SrcFileName, DstFileName))
3376 SrcFileName, DstFileName);
3387 if (DstFileName) ++DstFileName;
3388 else DstFileName = FilePathInfo->
Target;
3394 DoWatchDestFileName(DstFileName);
3406 DPRINT1(
"An error happened while trying to copy file '%S' (error 0x%08lx), skipping it...\n",
3419 DPRINT1(
"CHECKPOINT:HALF_COPIED\n");
3466 MemBarWidth = (
xScreen - 26) / 5;
3467 MemBarWidth -= MemBarWidth % 2;
3482 (
xScreen / 2) + (MemBarWidth / 2),
3484 (
xScreen / 2)- (MemBarWidth / 2),
3521 static const UINT StringIDs[] =
3719 else if (
Line == 13)
3725 else if (
Line == 14)
3731 else if (
Line == 15)
3821 L"\\Device\\Harddisk%d\\Partition0",
3825 DestinationDevicePathBuffer);
3828 DPRINT1(
"InstallMbrBootCodeToDisk() failed: Status 0x%lx\n",
Status);
3873 L"\\Device\\Harddisk%lu\\Partition%lu\\",
3935 if (
Bar->StepCount == 0)
3941 Bar->Progress =
Bar->StepCount -
Bar->CurrentStep;
3945 if (
Bar->ProgressFormatText &&
3946 (AlwaysUpdate || (
Bar->Progress != OldProgress)))
3949 Bar->ProgressFormatText,
Bar->Progress /
max(1,
Bar->Width) + 1);
3981 LONG TimerValue, OldTimerValue;
4004 BarWidth =
max(1, ProgressBar->
Width);
4005 TimerValue = TimeOut * BarWidth;
4011 TimerDiv = 1000 / BarWidth;
4012 TimerDiv =
max(1, TimerDiv);
4013 OldTimerValue = TimerValue;
4024 if (TimeElapsed >= TimerDiv)
4027 TimeElapsed /= TimerDiv;
4030 if (TimeElapsed <= TimerValue)
4031 TimerValue -= TimeElapsed;
4035 RefreshProgress =
TRUE;
4038 if (RefreshProgress)
4041 RefreshProgress =
FALSE;
4045 if (TimerValue <= 0)
4058 if (TimeElapsed < TimerDiv)
4061 Timeout.QuadPart = (TimerDiv - TimeElapsed) * -10000LL;
4077 DPRINT1(
"NtWaitForSingleObject() failed, Status 0x%08lx\n",
Status);
4084 if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D)
4203 DPRINT1(
"NtInitializeRegistry() failed (Status 0x%08lx)\n",
Status);
4210 DPRINT1(
"The user-mode PnP manager could not initialize (Status 0x%08lx), expect unavailable devices!\n",
Status);
4265 case SCSI_CONTROLLER_PAGE:
4266 Page = ScsiControllerPage(&Ir);
4269 case OEM_DRIVER_PAGE:
4270 Page = OemDriverPage(&Ir);
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
char * strchr(const char *String, int ch)
BOOLEAN DoFileCopy(IN OUT PUSETUP_DATA pSetupData, IN PSP_FILE_CALLBACK_W MsgHandler, IN PVOID Context OPTIONAL)
BOOLEAN PrepareFileCopy(IN OUT PUSETUP_DATA pSetupData, IN PFILE_COPY_STATUS_ROUTINE StatusRoutine OPTIONAL)
PGENERIC_LIST CreateKeyboardDriverList(IN HINF InfFile)
PGENERIC_LIST CreateComputerTypeList(IN HINF InfFile)
ULONG GetDefaultLanguageIndex(VOID)
PGENERIC_LIST CreateDisplayDriverList(IN HINF InfFile)
PGENERIC_LIST CreateKeyboardLayoutList(IN HINF InfFile, IN PCWSTR LanguageId, OUT PWSTR DefaultKBLayout)
PGENERIC_LIST CreateLanguageList(IN HINF InfFile, OUT PWSTR DefaultLanguage)
struct _GENENTRY * PGENENTRY
NTSTATUS DoChkdsk(IN PPARTENTRY PartEntry)
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
BOOL WINAPI FreeConsole(VOID)
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
NTSTATUS InitializeUserModePnpManager(IN HINF *phSetupInf)
VOID TerminateUserModePnpManager(VOID)
NTSTATUS WaitNoPendingInstallEvents(IN PLARGE_INTEGER Timeout OPTIONAL)
BOOLEAN EnableUserModePnpManager(VOID)
VOID ProgressSetStep(IN PPROGRESSBAR Bar, IN ULONG Step)
VOID ProgressNextStep(IN PPROGRESSBAR Bar)
PPROGRESSBAR CreateProgressBarEx(IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom, IN SHORT TextTop, IN SHORT TextRight, IN BOOLEAN DoubleEdge, IN SHORT ProgressColour, IN ULONG StepCount, IN PCSTR DescriptionText OPTIONAL, IN PCSTR ProgressFormatText OPTIONAL, IN PUPDATE_PROGRESS UpdateProgressProc OPTIONAL)
VOID ProgressSetStepCount(IN PPROGRESSBAR Bar, IN ULONG StepCount)
PPROGRESSBAR CreateProgressBar(IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom, IN SHORT TextTop, IN SHORT TextRight, IN BOOLEAN DoubleEdge, IN PCSTR DescriptionText OPTIONAL)
VOID DestroyProgressBar(IN OUT PPROGRESSBAR Bar)
static LPHIST_ENTRY Bottom
NTSTATUS InstallVBRToPartition(IN PUNICODE_STRING SystemRootPath, IN PUNICODE_STRING SourceRootPath, IN PUNICODE_STRING DestinationArcPath, IN PCWSTR FileSystemName)
NTSTATUS InstallFatBootcodeToFloppy(IN PUNICODE_STRING SourceRootPath, IN PUNICODE_STRING DestinationArcPath)
NTSTATUS InstallMbrBootCodeToDisk(IN PUNICODE_STRING SystemRootPath, IN PUNICODE_STRING SourceRootPath, IN PCWSTR DestinationDevicePathBuffer)
_In_ PSCSI_REQUEST_BLOCK _Out_ NTSTATUS _Inout_ BOOLEAN * Retry
VOID RecoveryConsole(VOID)
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
VOID CONSOLE_SetInputTextXY(IN SHORT x, IN SHORT y, IN SHORT len, IN LPCWSTR Text)
VOID CONSOLE_InvertTextXY(IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
VOID CONSOLE_SetCursorXY(IN SHORT x, IN SHORT y)
VOID CONSOLE_NormalTextXY(IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row)
VOID __cdecl CONSOLE_SetStatusText(IN LPCSTR fmt,...)
VOID CONSOLE_SetTextXY(IN SHORT x, IN SHORT y, IN LPCSTR Text)
VOID CONSOLE_ConInKey(OUT PINPUT_RECORD Buffer)
VOID __cdecl CONSOLE_PrintTextXY(IN SHORT x, IN SHORT y, IN LPCSTR fmt,...)
VOID CONSOLE_ClearScreen(VOID)
BOOLEAN CONSOLE_Init(VOID)
VOID CONSOLE_SetStatusTextV(IN LPCSTR fmt, IN va_list args)
BOOLEAN CONSOLE_ConInKeyPeek(OUT PINPUT_RECORD Buffer)
VOID CONSOLE_SetCursorType(IN BOOL bInsert, IN BOOL bVisible)
#define TEXT_TYPE_REGULAR
#define NT_SUCCESS(StatCode)
VOID DrawPartitionList(IN HWND hWndList, IN PPARTLIST List)
#define IsListEmpty(ListHead)
@ ERROR_DRIVE_INFORMATION
@ ERROR_INSUFFICIENT_PARTITION_SIZE
<