ReactOS 0.4.15-dev-8235-gcd88a97
format.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NTSTATUS DoFormat (IN PPARTENTRY PartEntry, IN PCWSTR FileSystemName, IN BOOLEAN QuickFormat)
 

Function Documentation

◆ DoFormat()

NTSTATUS DoFormat ( IN PPARTENTRY  PartEntry,
IN PCWSTR  FileSystemName,
IN BOOLEAN  QuickFormat 
)

Definition at line 92 of file format.c.

96{
98
100 yScreen - 14,
101 xScreen - 7,
102 yScreen - 10,
103 10,
104 24,
105 TRUE,
107
109
110 // TODO: Think about which values could be defaulted...
111 Status = FormatPartition(PartEntry,
112 FileSystemName,
113 FMIFS_HARDDISK, /* MediaFlag */
114 NULL, /* Label */
115 QuickFormat, /* QuickFormat */
116 0, /* ClusterSize */
117 FormatCallback); /* Callback */
118
121
122 DPRINT("FormatPartition() finished with status 0x%08lx\n", Status);
123
124 return Status;
125}
LONG NTSTATUS
Definition: precomp.h:26
static PPROGRESSBAR FormatProgressBar
Definition: format.c:34
static BOOLEAN NTAPI FormatCallback(IN CALLBACKCOMMAND Command, IN ULONG Modifier, IN PVOID Argument)
Definition: format.c:41
VOID ProgressSetStepCount(IN PPROGRESSBAR Bar, IN ULONG StepCount)
Definition: progress.c:347
PPROGRESSBAR CreateProgressBar(IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom, IN SHORT TextTop, IN SHORT TextRight, IN BOOLEAN DoubleEdge, IN PCSTR DescriptionText OPTIONAL)
Definition: progress.c:317
VOID DestroyProgressBar(IN OUT PPROGRESSBAR Bar)
Definition: progress.c:339
BOOL QuickFormat
Definition: format.c:66
SHORT yScreen
Definition: consup.c:40
SHORT xScreen
Definition: consup.c:39
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
@ FMIFS_HARDDISK
Definition: fmifs.h:51
Status
Definition: gdiplustypes.h:25
NTSTATUS FormatPartition(IN PPARTENTRY PartEntry, IN PCWSTR FileSystemName, IN FMIFS_MEDIA_FLAG MediaFlag, IN PCWSTR Label, IN BOOLEAN QuickFormat, IN ULONG ClusterSize, IN PFMIFSCALLBACK Callback)
Definition: fsutil.c:802
#define DPRINT
Definition: sndvol32.h:73
PCSTR MUIGetString(ULONG Number)
Definition: mui.c:251
#define STRING_FORMATTINGPART
Definition: mui.h:168

Referenced by FormatPartitionPage().