ReactOS 0.4.15-dev-8236-g99f0937
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>
18typedef 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
29typedef struct _FORMAT_CONTEXT
30{
37
38
39
43 PDISK_GEOMETRY DiskGeometry,
46
47VOID
50
51#endif /* _VFATXLIB_H_ */
52
53/* EOF */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
BOOL QuickFormat
Definition: format.c:66
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG Increment
Definition: CrNtStubs.h:46
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
Definition: fltkernel.h:1231
BOOLEAN(NTAPI * PFMIFSCALLBACK)(IN CALLBACKCOMMAND Command, IN ULONG SubAction, IN PVOID ActionInfo)
Definition: fmifs.h:89
struct _FATX_BOOT_SECTOR FATX_BOOT_SECTOR
VOID VfatxUpdateProgress(PFORMAT_CONTEXT Context, ULONG Increment)
struct _FORMAT_CONTEXT FORMAT_CONTEXT
struct _FORMAT_CONTEXT * PFORMAT_CONTEXT
NTSTATUS FatxFormat(HANDLE FileHandle, PPARTITION_INFORMATION PartitionInfo, PDISK_GEOMETRY DiskGeometry, BOOLEAN QuickFormat, PFORMAT_CONTEXT Context)
struct _FATX_BOOT_SECTOR * PFATX_BOOT_SECTOR
unsigned long Unknown
Definition: vfatxlib.h:24
unsigned short FATCount
Definition: vfatxlib.h:23
unsigned long VolumeID
Definition: vfatxlib.h:21
UCHAR SysType[4]
Definition: fatx.c:20
unsigned long SectorsPerCluster
Definition: vfatxlib.h:22
UCHAR Unused[4078]
Definition: fatx.c:25
ULONG Percent
Definition: vfatlib.h:109
ULONG CurrentSectorCount
Definition: vfatlib.h:107
BOOLEAN Success
Definition: vfatlib.h:108
ULONG TotalSectorCount
Definition: vfatlib.h:106
PFMIFSCALLBACK Callback
Definition: vfatlib.h:105
uint32_t ULONG
Definition: typedefs.h:59
_In_ ULONG _In_ struct _SET_PARTITION_INFORMATION_EX * PartitionInfo
Definition: iofuncs.h:2105