mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
65ce146169
svn path=/branches/ros-csrss/; revision=57561
73 lines
1.4 KiB
C
73 lines
1.4 KiB
C
/*
|
|
* PROJECT: ReactOS DiskPart
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: base/system/diskpart/list.c
|
|
* PURPOSE: Manages all the partitions of the OS in
|
|
* an interactive way
|
|
* PROGRAMMERS: Lee Schroeder
|
|
*/
|
|
#include "diskpart.h"
|
|
|
|
static VOID list_disk(VOID)
|
|
{
|
|
/* Header labels */
|
|
PrintResourceString(IDS_LIST_DISK_HEAD);
|
|
PrintResourceString(IDS_LIST_DISK_LINE);
|
|
|
|
printf("\n\n");
|
|
}
|
|
|
|
static VOID list_partition(VOID)
|
|
{
|
|
printf("List Partition!!\n");
|
|
}
|
|
|
|
static VOID list_volume(VOID)
|
|
{
|
|
PrintResourceString(IDS_LIST_VOLUME_HEAD);
|
|
}
|
|
|
|
static VOID list_vdisk(VOID)
|
|
{
|
|
printf("List VDisk!!\n");
|
|
}
|
|
|
|
BOOL list_main(INT argc, WCHAR **argv)
|
|
{
|
|
/* gets the first word from the string */
|
|
if (argc == 1)
|
|
{
|
|
help_list(0, NULL);
|
|
return TRUE;
|
|
}
|
|
|
|
/* determines which to list (disk, partition, etc.) */
|
|
if(!wcsicmp(argv[1], L"disk"))
|
|
{
|
|
list_disk();
|
|
}
|
|
else if(!wcsicmp(argv[1], L"partition"))
|
|
{
|
|
list_partition();
|
|
}
|
|
else if(!wcsicmp(argv[1], L"volume"))
|
|
{
|
|
list_volume();
|
|
}
|
|
else if(!wcsicmp(argv[1], L"vdisk"))
|
|
{
|
|
list_vdisk();
|
|
}
|
|
else
|
|
{
|
|
help_list(0, NULL);
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
VOID help_list(INT argc, WCHAR **argv)
|
|
{
|
|
PrintResourceString(IDS_HELP_CMD_LIST);
|
|
}
|