Fix merge r65567.
[reactos.git] / base / system / diskpart / list.c
1 /*
2 * PROJECT: ReactOS DiskPart
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: base/system/diskpart/list.c
5 * PURPOSE: Manages all the partitions of the OS in
6 * an interactive way
7 * PROGRAMMERS: Lee Schroeder
8 */
9
10 #include "diskpart.h"
11
12 static VOID list_disk(VOID)
13 {
14 /* Header labels */
15 PrintResourceString(IDS_LIST_DISK_HEAD);
16 PrintResourceString(IDS_LIST_DISK_LINE);
17
18 printf("\n\n");
19 }
20
21 static VOID list_partition(VOID)
22 {
23 printf("List Partition!!\n");
24 }
25
26 static VOID list_volume(VOID)
27 {
28 PrintResourceString(IDS_LIST_VOLUME_HEAD);
29 }
30
31 static VOID list_vdisk(VOID)
32 {
33 printf("List VDisk!!\n");
34 }
35
36 BOOL list_main(INT argc, LPWSTR *argv)
37 {
38 /* gets the first word from the string */
39 if (argc == 1)
40 {
41 PrintResourceString(IDS_HELP_CMD_LIST);
42 return TRUE;
43 }
44
45 /* determines which to list (disk, partition, etc.) */
46 if(!wcsicmp(argv[1], L"disk"))
47 list_disk();
48 else if(!wcsicmp(argv[1], L"partition"))
49 list_partition();
50 else if(!wcsicmp(argv[1], L"volume"))
51 list_volume();
52 else if(!wcsicmp(argv[1], L"vdisk"))
53 list_vdisk();
54 else
55 PrintResourceString(IDS_HELP_CMD_LIST);
56
57 return TRUE;
58 }