ReactOS  0.4.15-dev-449-g64abd9f
vfatxlib.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS VFAT filesystem library
4  * FILE: vfatxlib.h
5  */
6 
7 #ifndef _VFATXLIB_H_
8 #define _VFATXLIB_H_
9 
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>
16 
17 #include <pshpack1.h>
18 typedef struct _FATX_BOOT_SECTOR
19 {
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
27 #include <poppack.h>
28 
29 typedef struct _FORMAT_CONTEXT
30 {
35  ULONG Percent;
37 
38 
39 
43  PDISK_GEOMETRY DiskGeometry,
46 
47 VOID
50 
51 #endif /* _VFATXLIB_H_ */
52 
53 /* EOF */
ULONG TotalSectorCount
Definition: vfatlib.h:106
struct _FORMAT_CONTEXT FORMAT_CONTEXT
struct _FATX_BOOT_SECTOR FATX_BOOT_SECTOR
unsigned long SectorsPerCluster
Definition: vfatxlib.h:22
struct _FORMAT_CONTEXT * PFORMAT_CONTEXT
unsigned char Unused[4078]
Definition: vfatxlib.h:25
VOID VfatxUpdateProgress(PFORMAT_CONTEXT Context, ULONG Increment)
LONG NTSTATUS
Definition: precomp.h:26
HANDLE FileHandle
Definition: stats.c:38
unsigned long Unknown
Definition: vfatxlib.h:24
struct _FATX_BOOT_SECTOR * PFATX_BOOT_SECTOR
PFMIFSCALLBACK Callback
Definition: vfatlib.h:105
unsigned char BOOLEAN
BOOL QuickFormat
Definition: format.c:66
unsigned char SysType[4]
Definition: vfatxlib.h:20
_In_ ULONG _In_ struct _SET_PARTITION_INFORMATION_EX * PartitionInfo
Definition: iofuncs.h:2101
BOOLEAN Success
Definition: vfatlib.h:108
ULONG CurrentSectorCount
Definition: vfatlib.h:107
unsigned short FATCount
Definition: vfatxlib.h:23
ULONG Percent
Definition: vfatlib.h:109
BOOLEAN(NTAPI * PFMIFSCALLBACK)(IN CALLBACKCOMMAND Command, IN ULONG SubAction, IN PVOID ActionInfo)
Definition: fmifs.h:89
unsigned long VolumeID
Definition: vfatxlib.h:21
unsigned int ULONG
Definition: retypes.h:1
NTSTATUS FatxFormat(HANDLE FileHandle, PPARTITION_INFORMATION PartitionInfo, PDISK_GEOMETRY DiskGeometry, BOOLEAN QuickFormat, PFORMAT_CONTEXT Context)
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG Increment
Definition: CrNtStubs.h:42