2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS VFAT filesystem library
7 #include <ndk/iofuncs.h>
8 #include <ndk/kefuncs.h>
9 #include <ndk/obfuncs.h>
10 #include <ndk/rtlfuncs.h>
11 #include <fmifs/fmifs.h>
14 typedef struct _FATX_BOOT_SECTOR
16 unsigned char SysType
[4]; // 0
17 unsigned long VolumeID
; // 4
18 unsigned long SectorsPerCluster
; // 8
19 unsigned short FATCount
; // 12
20 unsigned long Unknown
; // 14
21 unsigned char Unused
[4078]; // 18
22 } FATX_BOOT_SECTOR
, *PFATX_BOOT_SECTOR
;
25 typedef struct _FORMAT_CONTEXT
27 PFMIFSCALLBACK Callback
;
28 ULONG TotalSectorCount
;
29 ULONG CurrentSectorCount
;
32 } FORMAT_CONTEXT
, *PFORMAT_CONTEXT
;
37 FatxFormat (HANDLE FileHandle
,
38 PPARTITION_INFORMATION PartitionInfo
,
39 PDISK_GEOMETRY DiskGeometry
,
41 PFORMAT_CONTEXT Context
);
44 VfatxUpdateProgress (PFORMAT_CONTEXT Context
,