2017-09-05 12:56:45 +00:00
|
|
|
#ifndef __FSUTIL_H__
|
|
|
|
#define __FSUTIL_H__
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-09-20 07:50:48 +00:00
|
|
|
typedef int (HandlerProc)(int argc, const TCHAR *argv[]);
|
|
|
|
typedef HandlerProc * pHandlerProc;
|
|
|
|
|
2017-09-05 12:56:45 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2017-09-20 07:50:48 +00:00
|
|
|
pHandlerProc Handler;
|
2017-09-05 12:56:45 +00:00
|
|
|
const TCHAR * Command;
|
|
|
|
const TCHAR * Desc;
|
|
|
|
} HandlerItem;
|
|
|
|
|
2017-09-05 13:10:16 +00:00
|
|
|
int FindHandler(int argc,
|
|
|
|
const TCHAR *argv[],
|
|
|
|
HandlerItem * HandlersList,
|
|
|
|
int HandlerListCount,
|
|
|
|
void (*UsageHelper)(const TCHAR *));
|
|
|
|
|
2017-09-06 12:41:52 +00:00
|
|
|
HANDLE OpenVolume(const TCHAR * Volume,
|
2017-09-25 18:59:54 +00:00
|
|
|
BOOLEAN AllowRemote,
|
|
|
|
BOOLEAN NtfsOnly);
|
2017-09-06 12:41:52 +00:00
|
|
|
|
2017-09-05 13:24:00 +00:00
|
|
|
void PrintDefaultUsage(const TCHAR * Command,
|
|
|
|
const TCHAR * SubCommand,
|
|
|
|
HandlerItem * HandlersList,
|
|
|
|
int HandlerListCount);
|
|
|
|
|
2017-09-06 17:11:03 +00:00
|
|
|
int PrintErrorMessage(DWORD Error);
|
|
|
|
|
2017-09-05 12:56:45 +00:00
|
|
|
#endif
|