MM_VOLUME_DELETE

Indicates to a file system application that a volume, and all of its contents, are to be discarded.

Parameters

Parameters to MM_ObjectControl for this operation are as follows:

objectID
The OBID of the file system application expected to delete the volume.
operation
Set to MM_VOLUME_DELETE.
parameter1
Set to zero.
parameter2
Set to zero.
parameter3
Set to zero.
bufferLength
Length, in bytes, of the volume name, not including the null.
buffer
The null-terminated name of the volume to be dismounted.

Return Values

The following table lists return values and descriptions.

0x00000000

MM_OK

0x00000008

MM_OBJECT_NOT_FOUND

The file system cannot identify the volume, by the given name, as one under the file system’s responsibility.

Remarks

After a volume is deleted, the capacity occupied by the volume becomes available for other purposes.