mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
164 lines
3.3 KiB
C
164 lines
3.3 KiB
C
/*
|
|
* PROJECT: ReactOS DiskPart
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: base/system/diskpart/diskpart.c
|
|
* PURPOSE: Manages all the partitions of the OS in
|
|
* an interactive way
|
|
* PROGRAMMERS: Lee Schroeder
|
|
*/
|
|
|
|
#ifndef DISKPART_H
|
|
#define DISKPART_H
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
#include <stdio.h>
|
|
|
|
#define WIN32_NO_STATUS
|
|
#include <windef.h>
|
|
|
|
#include "resource.h"
|
|
|
|
/* DEFINES *******************************************************************/
|
|
|
|
typedef struct _COMMAND
|
|
{
|
|
LPWSTR name;
|
|
BOOL (*func)(INT, WCHAR**);
|
|
INT help;
|
|
INT help_desc;
|
|
} COMMAND, *PCOMMAND;
|
|
|
|
extern COMMAND cmds[];
|
|
|
|
/* NOERR codes for the program */
|
|
#define ERROR_NONE 0
|
|
#define ERROR_FATAL 1
|
|
#define ERROR_CMD_ARG 2
|
|
#define ERROR_FILE 3
|
|
#define ERROR_SERVICE 4
|
|
#define ERROR_SYNTAX 5
|
|
|
|
#define MAX_STRING_SIZE 1024
|
|
#define MAX_ARGS_COUNT 256
|
|
|
|
/* PROTOTYPES *****************************************************************/
|
|
|
|
/* active.c */
|
|
BOOL active_main(INT argc, LPWSTR *argv);
|
|
|
|
/* add.c */
|
|
BOOL add_main(INT argc, LPWSTR *argv);
|
|
|
|
/* assign.c */
|
|
BOOL assign_main(INT argc, LPWSTR *argv);
|
|
|
|
/* attach.c */
|
|
BOOL attach_main(INT argc, LPWSTR *argv);
|
|
|
|
/* attributes.h */
|
|
BOOL attributes_main(INT argc, LPWSTR *argv);
|
|
|
|
/* automount.c */
|
|
BOOL automount_main(INT argc, LPWSTR *argv);
|
|
|
|
/* break.c */
|
|
BOOL break_main(INT argc, LPWSTR *argv);
|
|
|
|
/* clean.c */
|
|
BOOL clean_main(INT argc, LPWSTR *argv);
|
|
|
|
/* compact.c */
|
|
BOOL compact_main(INT argc, LPWSTR *argv);
|
|
|
|
/* convert.c */
|
|
BOOL convert_main(INT argc, LPWSTR *argv);
|
|
|
|
/* create.c */
|
|
BOOL create_main(INT argc, LPWSTR *argv);
|
|
|
|
/* delete.c */
|
|
BOOL delete_main(INT argc, LPWSTR *argv);
|
|
|
|
/* detach.c */
|
|
BOOL detach_main(INT argc, LPWSTR *argv);
|
|
|
|
/* detail.c */
|
|
BOOL detail_main(INT argc, LPWSTR *argv);
|
|
|
|
/* diskpart.c */
|
|
VOID PrintResourceString(INT resID, ...);
|
|
|
|
/* expand.c */
|
|
BOOL expand_main(INT argc, LPWSTR *argv);
|
|
|
|
/* extend.c */
|
|
BOOL extend_main(INT argc, LPWSTR *argv);
|
|
|
|
/* filesystem.c */
|
|
BOOL filesystems_main(INT argc, LPWSTR *argv);
|
|
|
|
/* format.c */
|
|
BOOL format_main(INT argc, LPWSTR *argv);
|
|
|
|
/* gpt.c */
|
|
BOOL gpt_main(INT argc, LPWSTR *argv);
|
|
|
|
/* help.c */
|
|
BOOL help_main(INT argc, LPWSTR *argv);
|
|
VOID help_cmdlist(VOID);
|
|
|
|
/* import. c */
|
|
BOOL import_main(INT argc, LPWSTR *argv);
|
|
|
|
/* inactive.c */
|
|
BOOL inactive_main(INT argc, LPWSTR *argv);
|
|
|
|
/* interpreter.c */
|
|
BOOL InterpretScript(LPWSTR line);
|
|
BOOL InterpretCmd(INT argc, LPWSTR *argv);
|
|
VOID InterpretMain(VOID);
|
|
|
|
/* list.c */
|
|
BOOL list_main(INT argc, LPWSTR *argv);
|
|
|
|
/* merge.c */
|
|
BOOL merge_main(INT argc, LPWSTR *argv);
|
|
|
|
/* offline.c */
|
|
BOOL offline_main(INT argc, LPWSTR *argv);
|
|
|
|
/* online.c */
|
|
BOOL online_main(INT argc, LPWSTR *argv);
|
|
|
|
/* recover.c */
|
|
BOOL recover_main(INT argc, LPWSTR *argv);
|
|
|
|
/* remove.c */
|
|
BOOL remove_main(INT argc, LPWSTR *argv);
|
|
|
|
/* repair.c */
|
|
BOOL repair_main(INT argc, LPWSTR *argv);
|
|
|
|
/* rescan.c */
|
|
BOOL rescan_main(INT argc, LPWSTR *argv);
|
|
|
|
/* retain.c */
|
|
BOOL retain_main(INT argc, LPWSTR *argv);
|
|
|
|
/* san.c */
|
|
BOOL san_main(INT argc, LPWSTR *argv);
|
|
|
|
/* select.c */
|
|
BOOL select_main(INT argc, LPWSTR *argv);
|
|
|
|
/* setid.c */
|
|
BOOL setid_main(INT argc, LPWSTR *argv);
|
|
|
|
/* shrink.c */
|
|
BOOL shrink_main(INT argc, LPWSTR *argv);
|
|
|
|
/* uniqueid.c */
|
|
BOOL uniqueid_main(INT argc, LPWSTR *argv);
|
|
|
|
#endif /* DISKPART_H */
|