Share via


FORMAT_OPTIONS (Compact 2013)

3/26/2014

This structure contains user-specified options.

Syntax

typedef struct _FORMAT_OPTIONS {
  DWORD dwClusSize;
  DWORD dwRootEntries;
  DWORD dwFatVersion;
  DWORD dwNumFats;
  DWORD dwFlags;
} FORMAT_OPTIONS;

Members

  • dwClusSize
    Desired cluster size in bytes. Must be a power of 2.
  • dwRootEntries
    Desired number of root directory entries.
  • dwFatVersion
    FAT Version. Either 12, 16, or 32.
  • dwNumFats
    Number of FATs to create.
  • dwFlags
    This member can be set to one or a combination of values. The following table shows possible values.

    Value

    Description

    FATUTIL_DISABLE_MOUNT_CHK

    Disables checking to see if a volume is mounted prior to performing an operation.

    FATUTIL_FULL_FORMAT

    Performs a full format on a volume.

    FATUTIL_SECURE_WIPE

    Performs a secure erase and format.

    FATUTIL_FORMAT_EXFAT

    Formats a volume as extended FAT (ExFAT).

    FATUTIL_FORMAT_TFAT

    Enables transaction-safe extended FAT (TexFAT), which is the replacement for TFAT. Use this flag with FATUTIL_FORMAT_EXFAT to format the volume as TexFAT.

Requirements

Header

Fatutil.h

See Also

Reference

FAT File System Structures
FormatVolume