Author: ekohl
Date: Mon Jun 9 01:49:24 2014
New Revision: 63574
URL:
http://svn.reactos.org/svn/reactos?rev=63574&view=rev
Log:
[USETUP]
Add the create logical partition page.
Modified:
trunk/reactos/base/setup/usetup/interface/usetup.c
trunk/reactos/base/setup/usetup/lang/bg-BG.h
trunk/reactos/base/setup/usetup/lang/cs-CZ.h
trunk/reactos/base/setup/usetup/lang/de-DE.h
trunk/reactos/base/setup/usetup/lang/el-GR.h
trunk/reactos/base/setup/usetup/lang/en-US.h
trunk/reactos/base/setup/usetup/lang/es-ES.h
trunk/reactos/base/setup/usetup/lang/et-EE.h
trunk/reactos/base/setup/usetup/lang/fr-FR.h
trunk/reactos/base/setup/usetup/lang/he-IL.h
trunk/reactos/base/setup/usetup/lang/it-IT.h
trunk/reactos/base/setup/usetup/lang/ja-JP.h
trunk/reactos/base/setup/usetup/lang/lt-LT.h
trunk/reactos/base/setup/usetup/lang/nl-NL.h
trunk/reactos/base/setup/usetup/lang/pl-PL.h
trunk/reactos/base/setup/usetup/lang/pt-BR.h
trunk/reactos/base/setup/usetup/lang/ro-RO.h
trunk/reactos/base/setup/usetup/lang/ru-RU.h
trunk/reactos/base/setup/usetup/lang/sk-SK.h
trunk/reactos/base/setup/usetup/lang/sq-AL.h
trunk/reactos/base/setup/usetup/lang/sv-SE.h
trunk/reactos/base/setup/usetup/lang/tr-TR.h
trunk/reactos/base/setup/usetup/lang/uk-UA.h
trunk/reactos/base/setup/usetup/mui.h
trunk/reactos/base/setup/usetup/partlist.c
trunk/reactos/base/setup/usetup/partlist.h
Modified: trunk/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] Mon Jun 9 01:49:24
2014
@@ -2131,8 +2131,146 @@
static PAGE_NUMBER
CreateLogicalPartitionPage(PINPUT_RECORD Ir)
{
-
- return SELECT_PARTITION_PAGE;
+ PDISKENTRY DiskEntry;
+ PPARTENTRY PartEntry;
+ BOOLEAN Quit;
+ BOOLEAN Cancel;
+ CHAR InputBuffer[50];
+ ULONG MaxSize;
+ ULONGLONG PartSize;
+ ULONGLONG DiskSize;
+ ULONGLONG SectorCount;
+ PCHAR Unit;
+
+ if (PartitionList == NULL ||
+ PartitionList->CurrentDisk == NULL ||
+ PartitionList->CurrentPartition == NULL)
+ {
+ /* FIXME: show an error dialog */
+ return QUIT_PAGE;
+ }
+
+ DiskEntry = PartitionList->CurrentDisk;
+ PartEntry = PartitionList->CurrentPartition;
+
+ CONSOLE_SetStatusText(MUIGetString(STRING_PLEASEWAIT));
+
+ CONSOLE_SetTextXY(6, 8, MUIGetString(STRING_CHOOSE_NEW_LOGICAL_PARTITION));
+
+ DiskSize = DiskEntry->SectorCount.QuadPart * DiskEntry->BytesPerSector;
+#if 0
+ if (DiskSize >= 10737418240) /* 10 GB */
+ {
+ DiskSize = DiskSize / 1073741824;
+ Unit = MUIGetString(STRING_GB);
+ }
+ else
+#endif
+ {
+ DiskSize = DiskSize / 1048576;
+ if (DiskSize == 0)
+ DiskSize = 1;
+
+ Unit = MUIGetString(STRING_MB);
+ }
+
+ if (DiskEntry->DriverName.Length > 0)
+ {
+ CONSOLE_PrintTextXY(6, 10,
+ MUIGetString(STRING_HDINFOPARTCREATE),
+ DiskSize,
+ Unit,
+ DiskEntry->DiskNumber,
+ DiskEntry->Port,
+ DiskEntry->Bus,
+ DiskEntry->Id,
+ &DiskEntry->DriverName);
+ }
+ else
+ {
+ CONSOLE_PrintTextXY(6, 10,
+ MUIGetString(STRING_HDDINFOUNK1),
+ DiskSize,
+ Unit,
+ DiskEntry->DiskNumber,
+ DiskEntry->Port,
+ DiskEntry->Bus,
+ DiskEntry->Id);
+ }
+
+ CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_HDDSIZE));
+
+#if 0
+ CONSOLE_PrintTextXY(8, 10, "Maximum size of the new partition is %I64u
MB",
+ PartitionList->CurrentPartition->SectorCount *
DiskEntry->BytesPerSector / 1048576);
+#endif
+
+ CONSOLE_SetStatusText(MUIGetString(STRING_CREATEPARTITION));
+
+ PartEntry = PartitionList->CurrentPartition;
+ while (TRUE)
+ {
+ MaxSize = (PartEntry->SectorCount.QuadPart * DiskEntry->BytesPerSector) /
1048576; /* in MBytes (rounded) */
+
+ if (MaxSize > PARTITION_MAXSIZE)
+ MaxSize = PARTITION_MAXSIZE;
+
+ ShowPartitionSizeInputBox(12, 14, xScreen - 12, 17, /* left, top, right, bottom
*/
+ MaxSize, InputBuffer, &Quit, &Cancel);
+
+ if (Quit == TRUE)
+ {
+ if (ConfirmQuit (Ir) == TRUE)
+ {
+ return QUIT_PAGE;
+ }
+ }
+ else if (Cancel == TRUE)
+ {
+ return SELECT_PARTITION_PAGE;
+ }
+ else
+ {
+ PartSize = atoi(InputBuffer);
+
+ if (PartSize < 1)
+ {
+ /* Too small */
+ continue;
+ }
+
+ if (PartSize > MaxSize)
+ {
+ /* Too large */
+ continue;
+ }
+
+ /* Convert to bytes */
+ if (PartSize == MaxSize)
+ {
+ /* Use all of the unpartitioned disk space */
+ SectorCount = PartEntry->SectorCount.QuadPart;
+ }
+ else
+ {
+ /* Calculate the sector count from the size in MB */
+ SectorCount = PartSize * 1048576 / DiskEntry->BytesPerSector;
+
+ /* But never get larger than the unpartitioned disk space */
+ if (SectorCount > PartEntry->SectorCount.QuadPart)
+ SectorCount = PartEntry->SectorCount.QuadPart;
+ }
+
+ DPRINT("Partition size: %I64u bytes\n", PartSize);
+
+ CreateLogicalPartition(PartitionList,
+ SectorCount);
+
+ return SELECT_PARTITION_PAGE;
+ }
+ }
+
+ return CREATE_LOGICAL_PARTITION_PAGE;
}
Modified: trunk/reactos/base/setup/usetup/lang/bg-BG.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/bg-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/bg-BG.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/bg-BG.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1664,6 +1664,8 @@
// "§¡à «¨ á⥠¤ áꧤ ¤¥â¥ ®¢ ¤ï« "},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"ꢥ¤¥â¥ à §¬¥à ®¢¨ï ¤ï« (¢ ¬¥£ ¡ ©â¨)."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/cs-CZ.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/cs-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/cs-CZ.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/cs-CZ.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1660,6 +1660,8 @@
// "Zvolili jste vytvoýen¡ novho odd¡lu na"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Zadejte velikost novho odd¡lu v megabajtech."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/de-DE.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/de-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/de-DE.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/de-DE.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -466,7 +466,7 @@
"nutzbaren Setups.",
TEXT_STYLE_NORMAL
},
- {
+ {
6,
14,
"Die Reparaturfunktionen sind noch nicht implementiert.",
@@ -915,7 +915,7 @@
"Benutzen Sie die Entf-TASTE, um Zeichen zu lschen.",
TEXT_STYLE_NORMAL
},
- {
+ {
6,
17,
"Besttigen Sie die Eingabe mit der EINGABETASTE.",
@@ -1398,7 +1398,7 @@
{
//ERROR_UPDATE_DISPLAY_SETTINGS,
"Die Registrierungseintrge der Anzeigeeinstellungen\n"
- "konnten nicht aktualisiert werden.",
+ "konnten nicht aktualisiert werden.",
"EINGABETASTER = Computer neu starten"
},
{
@@ -1439,7 +1439,7 @@
{
//ERROR_COPY_QUEUE,
"Die Liste mit den zu kopierenden Dateien\n"
- "konnte nicht gefunden werden.\n",
+ "konnte nicht gefunden werden.\n",
"EINGABETASTE = Computer neu starten"
},
{
@@ -1654,6 +1654,8 @@
"Eine primre Partition soll hier erstellt werden:"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"Eine erweiterte Partition soll hier erstellt werden:"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "Ein logisches Laufwerk soll hier erstellt werden:"},
{STRING_HDDSIZE,
"Bitte geben Sie die Gráe der neuen Partition in Megabyte ein."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/el-GR.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/el-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/el-GR.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/el-GR.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1676,6 +1676,8 @@
// "§ ¢â¥« ¤ £ ¦¬¨ã©« ⤠¤â¦ partition on"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"¨¡¢é é©« «¦ £â¦ª «¦¬ partition © megabytes."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/en-US.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/en-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/en-US.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/en-US.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1648,6 +1648,8 @@
"You have chosen to create a primary partition on"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Please enter the size of the new partition in megabytes."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/es-ES.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/es-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/es-ES.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/es-ES.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1658,6 +1658,8 @@
// "Ha elegido crear una nueva partici¢n en"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Por favor, introduzca el tama¤o de la nueva partici¢n en megabytes."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/et-EE.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/et-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/et-EE.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/et-EE.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1649,6 +1649,8 @@
// "Oled valinud kettale uue partitsiooni loomise"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Sisesta uue partitsiooni suurus megabaitides."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/fr-FR.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/fr-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/fr-FR.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/fr-FR.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1662,6 +1662,8 @@
"Vous avez choisi de crer une partition primaire sur"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"Vous avez choisi de crer une partition tendue sur"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Veuillez entrer la taille de la nouvelle partition en mgaoctets."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/he-IL.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/he-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/he-IL.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/he-IL.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1650,6 +1650,8 @@
"You have chosen to create a primary partition on"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Please enter the size of the new partition in megabytes."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/it-IT.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/it-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/it-IT.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/it-IT.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1653,6 +1653,8 @@
// "Avete scelto di creare una nuova partizione su"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Indicare la dimensione della nuova partizione in megabyte."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/ja-JP.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/ja-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/ja-JP.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/ja-JP.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1652,6 +1652,8 @@
// "±À×¼² Ê߰輮ݦ ·ÞÆ »¸¾²½Ù ºÄ¶Þ ¾ÝÀ¸ »ÚϼÀ:"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"±À×¼² Ê߰è¼®ÝÉ »²½Þ¦ Ò¶ÞÊÞ²Ä ÀݲÃÞ Æ³Ø®¸ ¼Ã¸ÀÞ»²¡"},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/lt-LT.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/lt-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/lt-LT.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/lt-LT.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1659,6 +1659,8 @@
"You have chosen to create a primary partition on"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Please enter the size of the new partition in megabytes."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/nl-NL.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/nl-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/nl-NL.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/nl-NL.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1697,6 +1697,8 @@
// "U wilt een nieuwe partitie aanmaken op"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Voert u de grootte van de nieuwe partitie in in megabytes."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/pl-PL.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/pl-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/pl-PL.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/pl-PL.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1661,6 +1661,8 @@
// "Wybrane: utworzenie nowej partycji na"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Prosz© wprowadzi rozmiar nowej partycji w megabajtach."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/pt-BR.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/pt-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/pt-BR.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/pt-BR.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1688,6 +1688,8 @@
// "Voc solicitou a criaÆo de uma nova partiÆo em"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Por favor, insira o tamanho da nova partiÆo em megabytes (MB)."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/ro-RO.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/ro-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/ro-RO.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/ro-RO.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1729,6 +1729,8 @@
// "Aîi ales crearea unei noi partiîii pe"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Introduceîi mÇrimea noii partiîii n megaocteîi."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/ru-RU.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/ru-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/ru-RU.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/ru-RU.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1653,6 +1653,8 @@
// "ë å®â¨â¥ ᮧ¤ âì ®¢ë© à §¤¥« "},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"®¦ «ã©áâ , ¢¢¥¤¨â¥ à §¬¥à ®¢®£® à §¤¥« ¢ ¬¥£ ¡ ©â å."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/sk-SK.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/sk-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/sk-SK.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/sk-SK.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1663,6 +1663,8 @@
// "Zvolili ste vytvorenie novej oblasti na"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Zadajte, pros¡m, vekos novej oblasti v megabajtoch."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/sq-AL.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/sq-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/sq-AL.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/sq-AL.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1655,6 +1655,8 @@
"Ju keni zgjedhur pr t krijuar nj ndarje t re n"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Ju lutem, jepini madhsin e particionit t ri n megabajt."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/sv-SE.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/sv-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/sv-SE.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/sv-SE.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1658,6 +1658,8 @@
// "Du har valt att skapa en ny partiton p"},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Vnligen skriv in storleken av den nya partitionen i megabytes."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/tr-TR.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/tr-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/tr-TR.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/tr-TR.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1626,6 +1626,8 @@
// "Yeni bir blm oluturmay setiniz."},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"Oluturulacak blmn bykl§n megaoklu olarak giriniz."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/lang/uk-UA.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/uk-…
==============================================================================
--- trunk/reactos/base/setup/usetup/lang/uk-UA.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/lang/uk-UA.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -1658,6 +1658,8 @@
// "¨ å®ç¥â¥ á⢮à¨â¨ ®¢¨© ஧¤i« "},
{STRING_CHOOSE_NEW_EXTENDED_PARTITION,
"You have chosen to create an extended partition on"},
+ {STRING_CHOOSE_NEW_LOGICAL_PARTITION,
+ "You have chosen to create a logical partition on"},
{STRING_HDDSIZE,
"ã¤ì-« ᪠, ¢¢¥¤iâì ஧¬ià ®¢®£® ஧¤i«ã ¢ ¬¥£ ¡ ©â å."},
{STRING_CREATEPARTITION,
Modified: trunk/reactos/base/setup/usetup/mui.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/mui.h?re…
==============================================================================
--- trunk/reactos/base/setup/usetup/mui.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/mui.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -105,6 +105,7 @@
#define STRING_PARTITIONSIZE 4
#define STRING_CHOOSENEWPARTITION 5
#define STRING_CHOOSE_NEW_EXTENDED_PARTITION 57
+#define STRING_CHOOSE_NEW_LOGICAL_PARTITION 61
#define STRING_HDDSIZE 6
#define STRING_CREATEPARTITION 7
#define STRING_PARTFORMAT 8
Modified: trunk/reactos/base/setup/usetup/partlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist…
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -2578,6 +2578,32 @@
VOID
+CreateLogicalPartition(
+ PPARTLIST List,
+ ULONGLONG SectorCount)
+{
+// PDISKENTRY DiskEntry;
+ PPARTENTRY PartEntry;
+// PPARTENTRY NewPartEntry;
+
+ DPRINT1("CreateLogicalPartition(%I64u)\n", SectorCount);
+
+ if (List == NULL ||
+ List->CurrentDisk == NULL ||
+ List->CurrentPartition == NULL ||
+ List->CurrentPartition->IsPartitioned == TRUE)
+ {
+ return;
+ }
+
+// DiskEntry = List->CurrentDisk;
+ PartEntry = List->CurrentPartition;
+
+ DPRINT1("Current partition sector count: %I64u\n",
PartEntry->SectorCount.QuadPart);
+}
+
+
+VOID
DeleteCurrentPartition(
PPARTLIST List)
{
Modified: trunk/reactos/base/setup/usetup/partlist.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist…
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.h [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/partlist.h [iso-8859-1] Mon Jun 9 01:49:24 2014
@@ -231,6 +231,11 @@
ULONGLONG PartitionSize);
VOID
+CreateLogicalPartition(
+ PPARTLIST List,
+ ULONGLONG PartitionSize);
+
+VOID
DeleteCurrentPartition(
PPARTLIST List);