MM_VOLUME_CREATE

Causes the volume described by the VolumeConfigElementList structure and the MM_ObjectControl parameters to be created by the specified file system.

Parameters

Parameters to MM_ObjectControl for this operation are as follows:

objectID
The OBID of the file system application expected to create the volume. This must be the same file system application from which the default VolumeConfigElementList was obtained.
operation
Set to MM_VOLUME_CREATE.
parameter1
The OBID of the logical partition on which the volume is to be created.
parameter2
The zero-based starting sector, relative to the first sector of the logical partition, defining the beginning of the volume.
parameter3
The number of sectors that make up the capacity of the volume.
bufferLength
Set to zero.
buffer
The token found in the VolumeConfigElementList structure that identifies the instance of the VolumeConfigElementList structure given to the application.

Return Values

The following table lists return values and descriptions.

0x00000000

MM_OK

Remarks

A default VolumeConfigElementList structure is obtained from a file system application by the MM_VOLUME_RETURN_CONFIG_DIALOG operation and then modified to complete the required information. A successfully created volume can then be mounted.