[FSUTIL]
[reactos.git] / reactos / base / applications / cmdutils / fsutil / fsutil.h
1 #ifndef __FSUTIL_H__
2 #define __FSUTIL_H__
3
4 #include <windows.h>
5 #include <tchar.h>
6 #include <stdio.h>
7
8 typedef struct
9 {
10 int (*Handler)(int argc, const TCHAR *argv[]);
11 const TCHAR * Command;
12 const TCHAR * Desc;
13 } HandlerItem;
14
15 int FindHandler(int argc,
16 const TCHAR *argv[],
17 HandlerItem * HandlersList,
18 int HandlerListCount,
19 void (*UsageHelper)(const TCHAR *));
20
21 HANDLE OpenVolume(const TCHAR * Volume,
22 BOOLEAN AllowRemote);
23
24 void PrintDefaultUsage(const TCHAR * Command,
25 const TCHAR * SubCommand,
26 HandlerItem * HandlersList,
27 int HandlerListCount);
28
29 int PrintErrorMessage(DWORD Error);
30
31 #endif