mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 13:33:42 +00:00
35 lines
861 B
C
35 lines
861 B
C
#ifndef __FSUTIL_H__
|
|
#define __FSUTIL_H__
|
|
|
|
#include <windows.h>
|
|
#include <tchar.h>
|
|
#include <stdio.h>
|
|
|
|
typedef int (HandlerProc)(int argc, const TCHAR *argv[]);
|
|
typedef HandlerProc * pHandlerProc;
|
|
|
|
typedef struct
|
|
{
|
|
pHandlerProc Handler;
|
|
const TCHAR * Command;
|
|
const TCHAR * Desc;
|
|
} HandlerItem;
|
|
|
|
int FindHandler(int argc,
|
|
const TCHAR *argv[],
|
|
HandlerItem * HandlersList,
|
|
int HandlerListCount,
|
|
void (*UsageHelper)(const TCHAR *));
|
|
|
|
HANDLE OpenVolume(const TCHAR * Volume,
|
|
BOOLEAN AllowRemote,
|
|
BOOLEAN NtfsOnly);
|
|
|
|
void PrintDefaultUsage(const TCHAR * Command,
|
|
const TCHAR * SubCommand,
|
|
HandlerItem * HandlersList,
|
|
int HandlerListCount);
|
|
|
|
int PrintErrorMessage(DWORD Error);
|
|
|
|
#endif
|