ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

list.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS DiskPart
00003  * LICENSE:         GPL - See COPYING in the top level directory
00004  * FILE:            base/system/diskpart/list.c
00005  * PURPOSE:         Manages all the partitions of the OS in
00006  *                  an interactive way
00007  * PROGRAMMERS:     Lee Schroeder
00008  */
00009 #include "diskpart.h"
00010 
00011 static VOID list_disk(VOID)
00012 {
00013     /* Header labels */
00014     PrintResourceString(IDS_LIST_DISK_HEAD);
00015     PrintResourceString(IDS_LIST_DISK_LINE);
00016 
00017     printf("\n\n");
00018 }
00019 
00020 static VOID list_partition(VOID)
00021 {
00022     printf("List Partition!!\n");
00023 }
00024 
00025 static VOID list_volume(VOID)
00026 {
00027     PrintResourceString(IDS_LIST_VOLUME_HEAD);
00028 }
00029 
00030 static VOID list_vdisk(VOID)
00031 {
00032     printf("List VDisk!!\n");
00033 }
00034 
00035 BOOL list_main(INT argc, WCHAR **argv)
00036 {
00037     /* gets the first word from the string */
00038     if (argc == 1)
00039     {
00040         help_list(0, NULL);
00041         return TRUE;
00042     }
00043 
00044     /* determines which to list (disk, partition, etc.) */
00045     if(!wcsicmp(argv[1], L"disk"))
00046     {
00047         list_disk();
00048     }
00049     else if(!wcsicmp(argv[1], L"partition"))
00050     {
00051         list_partition();
00052     }
00053     else if(!wcsicmp(argv[1], L"volume"))
00054     {
00055         list_volume();
00056     }
00057     else if(!wcsicmp(argv[1], L"vdisk"))
00058     {
00059         list_vdisk();
00060     }
00061     else
00062     {
00063         help_list(0, NULL);
00064     }
00065 
00066     return TRUE;
00067 }
00068 
00069 
00070 VOID help_list(INT argc, WCHAR **argv)
00071 {
00072     PrintResourceString(IDS_HELP_CMD_LIST);
00073 }

Generated on Sat May 26 2012 04:17:40 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.