[DISKPART] Implement the ACTIVE and INACTIVE commands

This commit is contained in:
Eric Kohl 2022-06-06 11:22:48 +02:00
parent 734cd5e842
commit c8f6440a78
13 changed files with 331 additions and 100 deletions

View file

@ -8,8 +8,49 @@
#include "diskpart.h"
BOOL active_main(INT argc, LPWSTR *argv)
#define NDEBUG
#include <debug.h>
BOOL
active_main(
_In_ INT argc,
_In_ PWSTR *argv)
{
ConPuts(StdOut, L"\nActive\n");
NTSTATUS Status;
DPRINT("Active()\n");
if (CurrentDisk == NULL)
{
ConResPuts(StdOut, IDS_SELECT_NO_DISK);
return TRUE;
}
if (CurrentPartition == NULL)
{
ConResPuts(StdOut, IDS_SELECT_NO_PARTITION);
return TRUE;
}
if (CurrentPartition->BootIndicator)
{
ConResPuts(StdOut, IDS_ACTIVE_ALREADY);
return TRUE;
}
CurrentPartition->BootIndicator = TRUE;
CurrentDisk->Dirty = TRUE;
UpdateDiskLayout(CurrentDisk);
Status = WritePartitions(CurrentDisk);
if (NT_SUCCESS(Status))
{
ConResPuts(StdOut, IDS_ACTIVE_SUCCESS);
}
else
{
ConResPuts(StdOut, IDS_ACTIVE_FAIL);
}
return TRUE;
}

View file

@ -8,7 +8,49 @@
#include "diskpart.h"
BOOL inactive_main(INT argc, LPWSTR *argv)
#define NDEBUG
#include <debug.h>
BOOL
inactive_main(
_In_ INT argc,
_In_ PWSTR *argv)
{
NTSTATUS Status;
DPRINT("Inactive()\n");
if (CurrentDisk == NULL)
{
ConResPuts(StdOut, IDS_SELECT_NO_DISK);
return TRUE;
}
if (CurrentPartition == NULL)
{
ConResPuts(StdOut, IDS_SELECT_NO_PARTITION);
return TRUE;
}
if (!CurrentPartition->BootIndicator)
{
ConResPuts(StdOut, IDS_INACTIVE_ALREADY);
return TRUE;
}
CurrentPartition->BootIndicator = FALSE;
CurrentDisk->Dirty = TRUE;
UpdateDiskLayout(CurrentDisk);
Status = WritePartitions(CurrentDisk);
if (NT_SUCCESS(Status))
{
ConResPuts(StdOut, IDS_INACTIVE_SUCCESS);
}
else
{
ConResPuts(StdOut, IDS_INACTIVE_FAIL);
}
return TRUE;
}

View file

@ -15,6 +15,13 @@ Usage: DISKPART [/S filename] [/T timeout] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDie Partition konnte nicht als aktiv markiert werden.\nVergewissern Sie sich, dass diese Partition gültig ist.\n"
IDS_ACTIVE_SUCCESS "\nDie aktuelle Partition wurde als aktiv markiert.\n"
IDS_ACTIVE_ALREADY "\nDie aktuelle Partition wurde bereits als aktiv markiert.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDie angegebene Partition konnte nicht erstellt werden.\n"
@ -66,6 +73,13 @@ BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDie Partition konnte nicht als inaktiv markiert werden.\nVergewissern Sie sich, dass diese Partition gültig ist.\n"
IDS_INACTIVE_SUCCESS "\nDie aktuelle Partition wurde als inaktiv markiert.\n"
IDS_INACTIVE_ALREADY "\nDie aktuelle Partition wurde bereits als inaktiv markiert.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN

View file

@ -15,6 +15,13 @@ Usage: DISKPART [/S filename] [/T timeout] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -66,6 +73,13 @@ BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN

View file

@ -15,6 +15,13 @@ Sposób użycia: DISKPART [/S nazwa_pliku] [/T limit_czasu] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -66,6 +73,13 @@ BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN

View file

@ -17,6 +17,13 @@ Usage: DISKPART [/S filename] [/T timeout] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -55,6 +62,26 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN
@ -70,19 +97,6 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
/* RESCAN command string */
STRINGTABLE
BEGIN

View file

@ -17,6 +17,13 @@ Utilizare: DISKPART [/S numefișier] [/T timplimită] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -55,6 +62,26 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN
@ -70,19 +97,6 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
/* RESCAN command string */
STRINGTABLE
BEGIN

View file

@ -17,6 +17,13 @@ BEGIN
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -55,6 +62,26 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN
@ -70,19 +97,6 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
/* RESCAN command string */
STRINGTABLE
BEGIN

View file

@ -19,6 +19,13 @@ Usage: DISKPART [/S filename] [/T timeout] [/?]\n\n\
IDS_APP_PROMPT, "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -57,6 +64,26 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN
@ -72,19 +99,6 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
/* RESCAN command string */
STRINGTABLE
BEGIN

View file

@ -17,6 +17,13 @@ Kullanım: DISKPART [/S dosya adı] [/T zaman aşımı] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -55,6 +62,26 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN
@ -70,19 +97,6 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
/* RESCAN command string */
STRINGTABLE
BEGIN

View file

@ -24,6 +24,13 @@ Usage: DISKPART [/S filename] [/T timeout] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -62,6 +69,26 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN
@ -77,19 +104,6 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
/* RESCAN command string */
STRINGTABLE
BEGIN

View file

@ -18,6 +18,13 @@ Usage: DISKPART [/S 檔名] [/T 逾時] [/?]\n\n\
IDS_APP_PROMPT "DISKPART> "
END
STRINGTABLE
BEGIN
IDS_ACTIVE_FAIL "\nDiskPart was unable to mark the partition active.\nMake sure the partition is valid.\n"
IDS_ACTIVE_SUCCESS "\nDiskPart marked the current partition as active.\n"
IDS_ACTIVE_ALREADY "\nThe current partition is already marked as active.\n"
END
STRINGTABLE
BEGIN
IDS_CREATE_PARTITION_FAIL "\nDiskPart was unable to create the specified partition.\n"
@ -56,6 +63,26 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
STRINGTABLE
BEGIN
IDS_INACTIVE_FAIL "\nDiskPart was unable to mark the partition inactive.\nMake sure the partition is valid.\n"
IDS_INACTIVE_SUCCESS "\nDiskPart marked the current partition as inactive.\n"
IDS_INACTIVE_ALREADY "\nThe current partition is already marked as inactive.\n"
END
/* Detail header titles */
STRINGTABLE
BEGIN
@ -71,19 +98,6 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
STRINGTABLE
BEGIN
IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
IDS_FILESYSTEMS_TYPE "Type : %s\n"
IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
END
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
END
/* RESCAN command string */
STRINGTABLE
BEGIN

View file

@ -18,18 +18,16 @@
#define IDS_APP_LEAVING 4
#define IDS_APP_PROMPT 5
#define IDS_ACTIVE_FAIL 1000
#define IDS_ACTIVE_SUCCESS 1001
#define IDS_ACTIVE_ALREADY 1002
#define IDS_CREATE_PARTITION_FAIL 1050
#define IDS_CREATE_PARTITION_SUCCESS 1051
#define IDS_DELETE_PARTITION_FAIL 1070
#define IDS_DELETE_PARTITION_SUCCESS 1071
#define IDS_FILESYSTEMS_CURRENT 1090
#define IDS_FILESYSTEMS_FORMATTING 1091
#define IDS_FILESYSTEMS_TYPE 1092
#define IDS_FILESYSTEMS_CLUSTERSIZE 1093
#define IDS_DETAIL_INFO_DISK_ID 1107
#define IDS_DETAIL_INFO_TYPE 1108
#define IDS_DETAIL_INFO_STATUS 1109
@ -54,8 +52,18 @@
#define IDS_DETAIL_NO_DISKS 1135
#define IDS_DETAIL_NO_VOLUME 1136
#define IDS_FILESYSTEMS_CURRENT 1180
#define IDS_FILESYSTEMS_FORMATTING 1181
#define IDS_FILESYSTEMS_TYPE 1182
#define IDS_FILESYSTEMS_CLUSTERSIZE 1183
#define IDS_HELP_FORMAT_STRING 1200
#define IDS_INACTIVE_FAIL 1210
#define IDS_INACTIVE_SUCCESS 1211
#define IDS_INACTIVE_ALREADY 1212
#define IDS_LIST_DISK_HEAD 3300
#define IDS_LIST_DISK_LINE 3301
#define IDS_LIST_DISK_FORMAT 3302