104 DPRINT(
"mingliu.ttc found\n");
109 DPRINT(
"msgothic.ttc found\n");
114 DPRINT(
"msmincho.ttc found\n");
119 DPRINT(
"mssong.ttf found\n");
127 DPRINT(
"simsun.ttc found\n");
132 DPRINT(
"gulim.ttc found\n");
137 DPRINT(
"batang.ttc found\n");
193 coPos.
X = xLeft +
Width - 1;
202 for (coPos.
Y = yTop + 1; coPos.
Y < yTop +
Height - 1; coPos.
Y++)
218 coPos.
X = xLeft +
Width - 1;
245 coPos.
X = xLeft +
Width - 1;
314 Width = MaxLength + 4;
326 for (coPos.
Y = yTop; coPos.
Y < yTop +
Height; coPos.
Y++)
390 coPos.
X = xLeft +
Width - 1;
474 if (pszNewLayout !=
NULL)
726 DPRINT1(
"The user-mode PnP manager could not initialize, expect unavailable devices!\n");
730 DPRINT1(
"WaitNoPendingInstallEvents() failed to wait!\n");
947 DPRINT1(
"Failed to get a list of NTOS installations; continue installation...\n");
1041 DPRINT1(
"Selected installation for repair: \"%S\" ; DiskNumber = %d , PartitionNumber = %d\n",
1151 return SCSI_CONTROLLER_PAGE;
1183 return OEM_DRIVER_PAGE;
1285 else if (
Line == 16)
1299 else if (
Line == 16)
1318 else if (
Line == 12)
1320 else if (
Line == 13)
1322 else if (
Line == 14)
1324 else if (
Line == 16)
1575 DPRINT1(
"RepairUpdateFlag == TRUE, SelectPartition() returned FALSE, assert!\n");
1730 PopupError(
"The disk you have selected for installing ReactOS\n"
1731 "is not visible by the firmware of your computer,\n"
1732 "and so may not be bootable.\n"
1733 "Press ENTER to continue nonetheless.",
1850 L"\\Device\\Harddisk%lu\\Partition%lu\\",
1881#define PARTITION_SIZE_INPUT_FIELD_LENGTH 9
1883#define PARTITION_MAXSIZE (pow(10, (PARTITION_SIZE_INPUT_FIELD_LENGTH - 1)) - 1)
2045 if ((ch >=
L'0') && (ch <=
L'9'))
2090 CHAR LineBuffer[100];
2150 if (PartSize > MaxSize)
2157 if (PartSize == MaxSize)
2172 DPRINT (
"Partition size: %I64u bytes\n", PartSize);
2208 CHAR LineBuffer[100];
2268 if (PartSize > MaxSize)
2275 if (PartSize == MaxSize)
2290 DPRINT (
"Partition size: %I64u bytes\n", PartSize);
2325 CHAR LineBuffer[100];
2385 if (PartSize > MaxSize)
2392 if (PartSize == MaxSize)
2407 DPRINT(
"Partition size: %I64u bytes\n", PartSize);
2478 CHAR LineBuffer[100];
2562 CHAR LineBuffer[100];
2564 DPRINT(
"SelectFileSystemPage()\n");
2592 DPRINT1(
"We are using a different system partition!!!!\n");
2652 PopupError(
"The ReactOS Setup could not find a supported system partition\n"
2653 "on your system or could not create a new one. Without such partition\n"
2654 "the Setup program cannot install ReactOS.\n"
2655 "Press ENTER to return to the partition selection list.",
2684 DPRINT(
"WritePartitionsToDisk() failed\n");
2740 DPRINT1(
"FormatState: Start --> FormatSystemPartition\n");
2758 DPRINT1(
"FormatState: Start --> FormatInstallPartition\n");
2769 DPRINT1(
"FormatState: FormatSystemPartition --> FormatInstallPartition\n");
2784 DPRINT1(
"FormatState: FormatInstallPartition --> FormatOtherPartition\n");
2786 DPRINT1(
"FormatState: FormatOtherPartition --> FormatOtherPartition\n");
2793 DPRINT1(
"FormatState: FormatInstallPartition --> FormatDone\n");
2795 DPRINT1(
"FormatState: FormatOtherPartition --> FormatDone\n");
2804 DPRINT1(
"FormatState: FormatDone\n");
2840 else if (PartEntry->
New)
2889 DefaultFs =
L"BTRFS";
3019 DPRINT(
"FormatPartitionPage()\n");
3088 "Setup is currently unable to format a partition in %S.\n"
3090 " \x07 Press ENTER to continue Setup.\n"
3091 " \x07 Press F3 to quit Setup.",
3126 L"\\Device\\Harddisk%lu\\Partition%lu",
3130 DPRINT1(
"FormatPartition() failed with status 0x%08lx\n",
Status);
3181 DPRINT1(
"CheckFileSystemPage -- PartitionType: 0x%02X ; FileSystem: %S\n",
3196 "Setup is currently unable to check a partition formatted in %S.\n"
3198 " \x07 Press ENTER to continue Setup.\n"
3199 " \x07 Press F3 to quit Setup.",
3226 DPRINT1(
"ChkdskPartition() failed with status 0x%08lx\n",
Status);
3230 "ChkDsk detected some disk errors.\n(Status 0x%08lx).\n",
3262 if (InstallDir[
Length - 1] ==
L'\\')
3275 if (InstallDir[
i] ==
L'\\' &&
i > 0)
3277 if (InstallDir[
i - 1] ==
L'.')
3282 if (InstallDir[
Length - 1] ==
L'.')
3322 wcscpy(InstallDir,
L"\\ReactOS");
3336 DPRINT1(
"InitDestinationPaths() failed. Status code: 0x%lx",
Status);
3384 &InstallDir[
Pos + 1],
3440 DPRINT1(
"InitDestinationPaths() failed. Status code: 0x%lx",
Status);
3486 InstallDir[
Pos] =
c;
3598 PCWSTR SrcFileName, DstFileName;
3624 if (DstFileName) ++DstFileName;
3625 else DstFileName = FilePathInfo->
Target;
3636 if (SrcFileName) ++SrcFileName;
3637 else SrcFileName = FilePathInfo->
Source;
3640 if (DstFileName) ++DstFileName;
3641 else DstFileName = FilePathInfo->
Target;
3643 if (!
wcsicmp(SrcFileName, DstFileName))
3649 SrcFileName, DstFileName);
3660 if (DstFileName) ++DstFileName;
3661 else DstFileName = FilePathInfo->
Target;
3667 DoWatchDestFileName(DstFileName);
3679 DPRINT1(
"An error happened while trying to copy file '%S' (error 0x%08lx), skipping it...\n",
3692 DPRINT1(
"CHECKPOINT:HALF_COPIED\n");
3739 MemBarWidth = (
xScreen - 26) / 5;
3740 MemBarWidth -= MemBarWidth % 2;
3755 (
xScreen / 2) + (MemBarWidth / 2),
3757 (
xScreen / 2)- (MemBarWidth / 2),
3794 static const UINT StringIDs[] =
3894 L"\\Device\\Harddisk%lu\\Partition%lu\\",
4001 else if (
Line == 13)
4007 else if (
Line == 14)
4013 else if (
Line == 15)
4141 L"\\Device\\Harddisk%d\\Partition0",
4145 DestinationDevicePathBuffer);
4148 DPRINT1(
"InstallMbrBootCodeToDisk() failed (Status %lx)\n",
Status);
4204 if (
Bar->StepCount == 0)
4210 Bar->Progress =
Bar->StepCount -
Bar->CurrentStep;
4214 if (
Bar->ProgressFormatText &&
4215 (AlwaysUpdate || (
Bar->Progress != OldProgress)))
4218 Bar->ProgressFormatText,
Bar->Progress /
max(1,
Bar->Width) + 1);
4250 LONG TimerValue, OldTimerValue;
4273 BarWidth =
max(1, ProgressBar->
Width);
4274 TimerValue = TimeOut * BarWidth;
4280 TimerDiv = 1000 / BarWidth;
4281 TimerDiv =
max(1, TimerDiv);
4282 OldTimerValue = TimerValue;
4293 if (TimeElapsed >= TimerDiv)
4296 TimeElapsed /= TimerDiv;
4299 if (TimeElapsed <= TimerValue)
4300 TimerValue -= TimeElapsed;
4304 RefreshProgress =
TRUE;
4307 if (RefreshProgress)
4310 RefreshProgress =
FALSE;
4314 if (TimerValue <= 0)
4327 if (TimeElapsed < TimerDiv)
4330 Timeout.QuadPart = (TimerDiv - TimeElapsed) * -10000LL;
4346 DPRINT1(
"NtWaitForSingleObject() failed, Status 0x%08lx\n",
Status);
4353 if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D)
4472 DPRINT1(
"NtInitializeRegistry() failed (Status 0x%08lx)\n",
Status);
4479 DPRINT1(
"The user-mode PnP manager could not initialize (Status 0x%08lx), expect unavailable devices!\n",
Status);
4534 case SCSI_CONTROLLER_PAGE:
4535 Page = ScsiControllerPage(&Ir);
4538 case OEM_DRIVER_PAGE:
4539 Page = OemDriverPage(&Ir);