Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[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 #include "diskpart.h"
10
11 static VOID list_disk(VOID)
12 {
13 /* Header labels */
14 PrintResourceString(IDS_LIST_DISK_HEAD);
15 PrintResourceString(IDS_LIST_DISK_LINE);
16
17 printf("\n\n");
18 }
19
20 static VOID list_partition(VOID)
21 {
22 printf("List Partition!!\n");
23 }
24
25 static VOID list_volume(VOID)
26 {
27 PrintResourceString(IDS_LIST_VOLUME_HEAD);
28 }
29
30 static VOID list_vdisk(VOID)
31 {
32 printf("List VDisk!!\n");
33 }
34
35 BOOL list_main(INT argc, LPWSTR *argv)
36 {
37 /* gets the first word from the string */
38 if (argc == 1)
39 {
40 PrintResourceString(IDS_HELP_CMD_LIST);
41 return TRUE;
42 }
43
44 /* determines which to list (disk, partition, etc.) */
45 if(!wcsicmp(argv[1], L"disk"))
46 list_disk();
47 else if(!wcsicmp(argv[1], L"partition"))
48 list_partition();
49 else if(!wcsicmp(argv[1], L"volume"))
50 list_volume();
51 else if(!wcsicmp(argv[1], L"vdisk"))
52 list_vdisk();
53 else
54 PrintResourceString(IDS_HELP_CMD_LIST);
55
56 return TRUE;
57 }