Files
reactos/reactos/lib/fmifs/format.c
T
Martin Fuchs 505695d368 migrate substitution keywords to SVN
svn path=/branches/xmlbuildsystem/; revision=12851
2005-01-06 13:34:15 +00:00

71 lines
1.2 KiB
C

/* $Id$
*
* COPYING: See the top level directory
* PROJECT: ReactOS
* FILE: reactos/lib/fmifs/format.c
* DESCRIPTION: File management IFS utility functions
* PROGRAMMER: Emanuele Aliberti
* UPDATED
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
#define UNICODE
#define _UNICODE
#include <windows.h>
#include <ntddk.h>
#include <fmifs.h>
#include <fslib/vfatlib.h>
#include <string.h>
#define NDEBUG
#include <debug.h>
/* FMIFS.6 */
VOID STDCALL
Format (VOID)
{
}
/* FMIFS.7 */
VOID STDCALL
FormatEx (PWCHAR DriveRoot,
ULONG MediaFlag,
PWCHAR Format,
PWCHAR Label,
BOOLEAN QuickFormat,
ULONG ClusterSize,
PFMIFSCALLBACK Callback)
{
UNICODE_STRING usDriveRoot;
UNICODE_STRING usLabel;
BOOLEAN Argument = FALSE;
RtlInitUnicodeString(&usDriveRoot, DriveRoot);
RtlInitUnicodeString(&usLabel, Label);
if (_wcsnicmp(Format, L"FAT", 3) == 0)
{
DPRINT1("FormatEx - FAT\n");
VfatInitialize ();
VfatFormat (&usDriveRoot,
MediaFlag,
&usLabel,
QuickFormat,
ClusterSize,
Callback);
VfatCleanup ();
}
else
{
/* Unknown file system */
Callback (DONE, /* Command */
0, /* DWORD Modifier */
&Argument); /* Argument */
}
}
/* EOF */