Partager via


Partition Driver (Windows Embedded CE 6.0)

1/6/2010

A partition driver interprets the partitions on a storage device for Partition Manager. Windows Embedded CE supports multiple partition drivers, but only one driver can manage a storage device.

A partition is defined as a logical division of a store. Windows Embedded CE supports multiple partitions, each having the same or different file systems associated with it. Partition Manager calls the partition driver. The DLL is MSPart.dll, and it exports several APIs. Custom partition drivers can be written, as long as they support the same APIs as MSPart.dll. Adding a "PartitionDriver"="MyPart.dll" entry in the profile overrides the default.

The following table shows the partition driver functions.

Function Description

PD_ClosePartition

Closes the partition from I/O operation.

PD_CloseStore

Closes the storage volume.

PD_CreatePartition

Creates a partition on the store volume.

PD_DeletePartition

Deletes a partition on the storage volume.

PD_DeviceIoControl

Sends a control code directly to a specified device driver, causing the corresponding device to perform the specified operation.

PD_FindPartitionClose

Closes the search handle for partition enumeration.

PD_FindPartitionNext

Retries the partition information for the next partition in the enumeration. If PD_FindPartitionNext is called after a call to PD_FindPartitionStart, it obtains the first partition.

PD_FindPartitionStart

Starts the partition enumeration.

PD_FormatPartition

Formats a partition on the storage volume.

PD_FormatStore

Formats the storage volume.

PD_GetPartitionInfo

Obtains the attributes for a partition.

PD_GetStoreInfo

Obtains the storage volume information from the partition driver.

PD_IsStoreFormatted

Checks whether the storage volume has been formatted.

PD_OpenPartition

Opens the partition to perform I/O operations.

PD_OpenStore

Opens the storage volume.

PD_RenamePartition

Renames a partition on the storage volume.

PD_SetPartitionAttrs

Sets the attributes for a given partition.

See Also

Concepts

Partition Manager