ReactOS 0.4.15-dev-8236-g99f0937
fsutil.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS FS utility tool
4 * FILE: base/applications/cmdutils/fsutil.c
5 * PURPOSE: FSutil main
6 * PROGRAMMERS: Pierre Schweitzer <pierre@reactos.org>
7 */
8
9#include "fsutil.h"
10
11/* Add handlers here for commands */
17{
18 /* Proc, name, help */
19 { DirtyMain, _T("dirty"), _T("Manipulates the dirty bit") },
20 { FsInfoMain, _T("fsinfo"), _T("Gathers informations about file systems") },
21 { HardLinkMain, _T("hardlink"), _T("Handles hard links") },
22 { VolumeMain, _T("volume"), _T("Manages volumes") },
23};
24
25static void
27{
29 (sizeof(HandlersList) / sizeof(HandlersList[0])));
30}
31
32int
34_tmain(int argc, const TCHAR *argv[])
35{
37 (sizeof(HandlersList) / sizeof(HandlersList[0])),
39}
static int argc
Definition: ServiceArgs.c:12
#define __cdecl
Definition: accygwin.h:79
HandlerProc DirtyMain
Definition: fsutil.c:12
HandlerProc VolumeMain
Definition: fsutil.c:15
HandlerProc HardLinkMain
Definition: fsutil.c:14
HandlerProc FsInfoMain
Definition: fsutil.c:13
static HandlerItem HandlersList[]
Definition: fsutil.c:16
int() HandlerProc(int argc, const TCHAR *argv[])
Definition: fsutil.h:8
void PrintDefaultUsage(const TCHAR *Command, const TCHAR *SubCommand, HandlerItem *HandlersList, int HandlerListCount)
Definition: common.c:102
int FindHandler(int argc, const TCHAR *argv[], HandlerItem *HandlersList, int HandlerListCount, void(*UsageHelper)(const TCHAR *))
Definition: common.c:11
#define _tmain
Definition: tchar.h:497
#define argv
Definition: mplay32.c:18
void PrintUsage()
Definition: nslookup.c:68
Definition: shell.h:41
#define _T(x)
Definition: vfdio.h:22
char TCHAR
Definition: xmlstorage.h:189