2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS VFAT filesystem library
10 #define NTOS_MODE_USER
11 #include <ndk/umtypes.h>
12 #include <ndk/pstypes.h>
13 #include <ndk/ldrtypes.h>
14 #include <ndk/iofuncs.h>
15 #include <fmifs/fmifs.h>
18 typedef struct _FATX_BOOT_SECTOR
20 unsigned char SysType
[4]; // 0
21 unsigned long VolumeID
; // 4
22 unsigned long SectorsPerCluster
; // 8
23 unsigned short FATCount
; // 12
24 unsigned long Unknown
; // 14
25 unsigned char Unused
[4078]; // 18
26 } FATX_BOOT_SECTOR
, *PFATX_BOOT_SECTOR
;
29 typedef struct _FORMAT_CONTEXT
31 PFMIFSCALLBACK Callback
;
32 ULONG TotalSectorCount
;
33 ULONG CurrentSectorCount
;
36 } FORMAT_CONTEXT
, *PFORMAT_CONTEXT
;
41 FatxFormat (HANDLE FileHandle
,
42 PPARTITION_INFORMATION PartitionInfo
,
43 PDISK_GEOMETRY DiskGeometry
,
45 PFORMAT_CONTEXT Context
);
48 VfatxUpdateProgress (PFORMAT_CONTEXT Context
,
51 #endif /* _VFATXLIB_H_ */