MM_DeletePartition

Deletes the NetWare partition on the device object specified by zeroing out the partition entry and deletes the related partition object from the Media Manager database.

Local Servers:Blocking
Remote Servers:Blocking
NetWare Server: 5.x
Platform:DOS, NLM, OS/2, Windows* 3.1, Windows NT*, Windows*95
Service:Media Manager

Syntax

  LONG MM_DeletePartition ( 
     LONG   partitionObjectID, 
     LONG   partitionType, 
     LONG   startingSector, 
     LONG   numberOfSectors ); 
  
  

Parameters

partitionObjectID
The Media Manager object handle of an unreserved partition object to be deleted.
partitionType
Not used. Set to -1.
startingSecctor
The beginning absolute sector number for the logical partition to be deleted.
numberOfSectors
The number of sectors in the partition object to be deleted. If either the startingSector or numberOfSectors parameters is incorrect for the partition requested, this function will not delete the partition. Since this function is destructive, these parameters are used to verify that the partition requested matches the partition that is on the media before deleting the partition.

Return Values

The following table lists return values and descriptions.

0x00000000

MM_OK

0x00000001

MM_INVALID_0BJECT

0x00000006

MM_RESERVATION_CONFLICT

0x00000016

MM_PARAMETER_ERROR

0xFFFFFFFF

MM_FAILURE