Share via


PD_FormatPartition

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function formats a partition on the storage volume.

Syntax

DWORD PD_FormatPartition(
  DWORD dwStoreId, 
  LPCTSTR szPartName, 
  BYTE bPartType, 
  BOOL bAuto
);

Parameters

  • dwStoreId
    [in] Handle returned by the PD_OpenStore function.
  • szPartName
    [in] Name of the new partition to format.
  • bPartType
    [in] Partition type or identifier.
  • bAuto
    [in] Specifies whether the partition driver automatically selects the default file system or partition type.

Return Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header partdrv.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Partition Manager Functions
CreatePartition
PD_OpenStore