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;
228 coPos.
Y = yTop + Height - 1;
237 coPos.
Y = yTop + Height - 1;
245 coPos.
X = xLeft + Width - 1;
246 coPos.
Y = yTop + Height - 1;
314 Width = MaxLength + 4;
326 for (coPos.
Y = yTop; coPos.
Y < yTop + Height; coPos.
Y++)
335 DrawBox(xLeft, yTop, Width, Height);
375 coPos.
Y = yTop + Height - 3;
390 coPos.
X = xLeft + Width - 1;
431 if (DiskSize >= 10 *
GB)
433 DiskSize = DiskSize /
GB;
439 DiskSize = DiskSize /
MB;
458 if (PartSize >= 10 *
GB)
460 PartSize = PartSize /
GB;
465 if (PartSize >= 10 *
MB)
467 PartSize = PartSize /
MB;
472 PartSize = PartSize /
KB;
534 if (pszNewLayout !=
NULL)
780 DPRINT1(
"The user-mode PnP manager could not initialize, expect unavailable devices!\n");
784 DPRINT1(
"WaitNoPendingInstallEvents() failed to wait!\n");
1001 DPRINT1(
"Failed to get a list of NTOS installations; continue installation...\n");
1095 DPRINT1(
"Selected installation for repair: \"%S\" ; DiskNumber = %d , PartitionNumber = %d\n",
1205 return SCSI_CONTROLLER_PAGE;
1237 return OEM_DRIVER_PAGE;
1339 else if (
Line == 16)
1353 else if (
Line == 16)
1372 else if (
Line == 12)
1374 else if (
Line == 13)
1376 else if (
Line == 14)
1378 else if (
Line == 16)
1565 DPRINT1(
"Partition is too small (size: %I64u MB), required disk space is %lu MB\n",
size,
USetupData.RequiredPartitionDiskSpace);
1629 DPRINT1(
"RepairUpdateFlag == TRUE, SelectPartition() returned FALSE, assert!\n");
1784 PopupError(
"The disk you have selected for installing ReactOS\n" 1785 "is not visible by the firmware of your computer,\n" 1786 "and so may not be bootable.\n" 1787 "Press ENTER to continue nonetheless.",
1904 L"\\Device\\Harddisk%lu\\Partition%lu\\",
1935 #define PARTITION_SIZE_INPUT_FIELD_LENGTH 9 1937 #define PARTITION_MAXSIZE (pow(10, (PARTITION_SIZE_INPUT_FIELD_LENGTH - 1)) - 1) 2099 if ((ch >=
L'0') && (ch <=
L'9'))
2234 if (PartSize > MaxSize)
2241 if (PartSize == MaxSize)
2256 DPRINT (
"Partition size: %I64u bytes\n", PartSize);
2382 if (PartSize > MaxSize)
2389 if (PartSize == MaxSize)
2404 DPRINT (
"Partition size: %I64u bytes\n", PartSize);
2529 if (PartSize > MaxSize)
2536 if (PartSize == MaxSize)
2551 DPRINT(
"Partition size: %I64u bytes\n", PartSize);
2625 CHAR PartTypeString[32];
2646 if (*PartTypeString ==
'\0')
2659 " %c%c %s %I64u %s",
2766 CHAR PartTypeString[32];
2770 DPRINT(
"SelectFileSystemPage()\n");
2798 DPRINT1(
"We are using a different system partition!!!!\n");
2810 if (PartSize >= 10 *
GB)
2812 PartSize = PartSize /
GB;
2817 PartSize = PartSize /
MB;
2826 if (*PartTypeString ==
'\0')
2850 if (DiskSize >= 10 *
GB)
2852 DiskSize = DiskSize /
GB;
2857 DiskSize = DiskSize /
MB;
2879 if (PartSize >= 10 *
GB)
2881 PartSize = PartSize /
GB;
2886 PartSize = PartSize /
MB;
2895 if (*PartTypeString ==
'\0')
2953 PopupError(
"The ReactOS Setup could not find a supported system partition\n" 2954 "on your system or could not create a new one. Without such partition\n" 2955 "the Setup program cannot install ReactOS.\n" 2956 "Press ENTER to return to the partition selection list.",
2985 DPRINT(
"WritePartitionsToDisk() failed\n");
3041 DPRINT1(
"FormatState: Start --> FormatSystemPartition\n");
3059 DPRINT1(
"FormatState: Start --> FormatInstallPartition\n");
3070 DPRINT1(
"FormatState: FormatSystemPartition --> FormatInstallPartition\n");
3085 DPRINT1(
"FormatState: FormatInstallPartition --> FormatOtherPartition\n");
3087 DPRINT1(
"FormatState: FormatOtherPartition --> FormatOtherPartition\n");
3094 DPRINT1(
"FormatState: FormatInstallPartition --> FormatDone\n");
3096 DPRINT1(
"FormatState: FormatOtherPartition --> FormatDone\n");
3105 DPRINT1(
"FormatState: FormatDone\n");
3165 else if (PartEntry->
New)
3204 if (*PartTypeString ==
'\0')
3248 DefaultFs =
L"BTRFS";
3378 DPRINT(
"FormatPartitionPage()\n");
3447 "Setup is currently unable to format a partition in %S.\n" 3449 " \x07 Press ENTER to continue Setup.\n" 3450 " \x07 Press F3 to quit Setup.",
3485 L"\\Device\\Harddisk%lu\\Partition%lu",
3489 DPRINT1(
"FormatPartition() failed with status 0x%08lx\n",
Status);
3541 DPRINT1(
"CheckFileSystemPage -- PartitionType: 0x%02X ; FileSystem: %S\n",
3556 "Setup is currently unable to check a partition formatted in %S.\n" 3558 " \x07 Press ENTER to continue Setup.\n" 3559 " \x07 Press F3 to quit Setup.",
3586 DPRINT1(
"ChkdskPartition() failed with status 0x%08lx\n",
Status);
3590 "ChkDsk detected some disk errors.\n(Status 0x%08lx).\n",
3622 if (InstallDir[
Length - 1] ==
L'\\')
3635 if (InstallDir[
i] ==
L'\\' &&
i > 0)
3637 if (InstallDir[
i - 1] ==
L'.')
3642 if (InstallDir[
Length - 1] ==
L'.')
3679 else if (
USetupData.InstallationDirectory[0])
3682 wcscpy(InstallDir,
L"\\ReactOS");
3696 DPRINT1(
"InitDestinationPaths() failed. Status code: 0x%lx",
Status);
3744 &InstallDir[
Pos + 1],
3800 DPRINT1(
"InitDestinationPaths() failed. Status code: 0x%lx",
Status);
3846 InstallDir[
Pos] =
c;
3958 PCWSTR SrcFileName, DstFileName;
3984 if (DstFileName) ++DstFileName;
3985 else DstFileName = FilePathInfo->
Target;
3996 if (SrcFileName) ++SrcFileName;
3997 else SrcFileName = FilePathInfo->
Source;
4000 if (DstFileName) ++DstFileName;
4001 else DstFileName = FilePathInfo->
Target;
4003 if (!
wcsicmp(SrcFileName, DstFileName))
4009 SrcFileName, DstFileName);
4018 if (DstFileName) ++DstFileName;
4019 else DstFileName = FilePathInfo->
Target;
4024 DoWatchDestFileName(DstFileName);
4036 DPRINT1(
"An error happened while trying to copy file '%S' (error 0x%08lx), skipping it...\n",
4049 DPRINT1(
"CHECKPOINT:HALF_COPIED\n");
4096 MemBarWidth = (
xScreen - 26) / 5;
4097 MemBarWidth -= MemBarWidth % 2;
4112 (
xScreen / 2) + (MemBarWidth / 2),
4114 (
xScreen / 2)- (MemBarWidth / 2),
4151 static const UINT StringIDs[] =
4253 L"\\Device\\Harddisk%lu\\Partition%lu\\",
4277 DPRINT(
"Error: system partition invalid (unused)\n");
4278 InstallOnFloppy =
TRUE;
4283 DPRINT(
"Found OS/2 boot manager partition\n");
4284 InstallOnFloppy =
TRUE;
4289 DPRINT(
"Found Linux native partition (ext2/ext3/ReiserFS/BTRFS/etc)\n");
4290 InstallOnFloppy =
FALSE;
4295 DPRINT(
"Found NTFS partition\n");
4298 InstallOnFloppy =
TRUE;
4307 DPRINT(
"Found FAT partition\n");
4308 InstallOnFloppy =
FALSE;
4313 DPRINT(
"Unknown partition found\n");
4314 InstallOnFloppy =
TRUE;
4318 if (InstallOnFloppy)
4403 else if (
Line == 13)
4409 else if (
Line == 14)
4415 else if (
Line == 15)
4574 L"\\Device\\Harddisk%d\\Partition0",
4578 DestinationDevicePathBuffer);
4581 DPRINT1(
"InstallMbrBootCodeToDisk() failed (Status %lx)\n",
Status);
4623 if (
Bar->StepCount == 0)
4629 Bar->Progress =
Bar->StepCount -
Bar->CurrentStep;
4633 if (
Bar->ProgressFormatText &&
4637 Bar->ProgressFormatText,
Bar->Progress /
max(1,
Bar->Width) + 1);
4669 LONG TimerValue, OldTimerValue;
4692 BarWidth =
max(1, ProgressBar->
Width);
4693 TimerValue = TimeOut * BarWidth;
4699 TimerDiv = 1000 / BarWidth;
4700 TimerDiv =
max(1, TimerDiv);
4701 OldTimerValue = TimerValue;
4712 if (TimeElapsed >= TimerDiv)
4715 TimeElapsed /= TimerDiv;
4718 if (TimeElapsed <= TimerValue)
4719 TimerValue -= TimeElapsed;
4723 RefreshProgress =
TRUE;
4726 if (RefreshProgress)
4729 RefreshProgress =
FALSE;
4733 if (TimerValue <= 0)
4746 if (TimeElapsed < TimerDiv)
4749 Timeout.QuadPart = (TimerDiv - TimeElapsed) * -10000
LL;
4765 DPRINT1(
"NtWaitForSingleObject() failed, Status 0x%08lx\n",
Status);
4772 if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D)
4891 DPRINT1(
"NtInitializeRegistry() failed (Status 0x%08lx)\n",
Status);
4898 DPRINT1(
"The user-mode PnP manager could not initialize (Status 0x%08lx), expect unavailable devices!\n",
Status);
4953 case SCSI_CONTROLLER_PAGE:
4954 Page = ScsiControllerPage(&Ir);
4957 case OEM_DRIVER_PAGE:
4958 Page = OemDriverPage(&Ir);