2005-07-31 12:11:56 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS VFAT filesystem library
|
|
|
|
* FILE: vfatxlib.h
|
|
|
|
*/
|
2014-01-04 10:24:39 +00:00
|
|
|
|
2014-02-07 16:58:53 +00:00
|
|
|
#ifndef _VFATXLIB_H_
|
|
|
|
#define _VFATXLIB_H_
|
|
|
|
|
2005-07-31 12:11:56 +00:00
|
|
|
#define NTOS_MODE_USER
|
2014-01-04 10:24:39 +00:00
|
|
|
#include <ndk/umtypes.h>
|
|
|
|
#include <ndk/pstypes.h>
|
|
|
|
#include <ndk/ldrtypes.h>
|
2011-08-17 14:04:33 +00:00
|
|
|
#include <ndk/iofuncs.h>
|
2006-09-07 17:39:42 +00:00
|
|
|
#include <fmifs/fmifs.h>
|
2005-07-31 12:11:56 +00:00
|
|
|
|
2007-11-22 14:28:21 +00:00
|
|
|
#include <pshpack1.h>
|
2005-07-31 12:11:56 +00:00
|
|
|
typedef struct _FATX_BOOT_SECTOR
|
|
|
|
{
|
|
|
|
unsigned char SysType[4]; // 0
|
|
|
|
unsigned long VolumeID; // 4
|
|
|
|
unsigned long SectorsPerCluster; // 8
|
|
|
|
unsigned short FATCount; // 12
|
|
|
|
unsigned long Unknown; // 14
|
|
|
|
unsigned char Unused[4078]; // 18
|
2007-11-22 14:28:21 +00:00
|
|
|
} FATX_BOOT_SECTOR, *PFATX_BOOT_SECTOR;
|
|
|
|
#include <poppack.h>
|
2005-07-31 12:11:56 +00:00
|
|
|
|
|
|
|
typedef struct _FORMAT_CONTEXT
|
|
|
|
{
|
|
|
|
PFMIFSCALLBACK Callback;
|
|
|
|
ULONG TotalSectorCount;
|
|
|
|
ULONG CurrentSectorCount;
|
|
|
|
BOOLEAN Success;
|
|
|
|
ULONG Percent;
|
|
|
|
} FORMAT_CONTEXT, *PFORMAT_CONTEXT;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
FatxFormat (HANDLE FileHandle,
|
|
|
|
PPARTITION_INFORMATION PartitionInfo,
|
|
|
|
PDISK_GEOMETRY DiskGeometry,
|
|
|
|
BOOLEAN QuickFormat,
|
|
|
|
PFORMAT_CONTEXT Context);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
VfatxUpdateProgress (PFORMAT_CONTEXT Context,
|
|
|
|
ULONG Increment);
|
|
|
|
|
2014-02-07 16:58:53 +00:00
|
|
|
#endif /* _VFATXLIB_H_ */
|
|
|
|
|
2005-07-31 12:11:56 +00:00
|
|
|
/* EOF */
|