11.2 Create a Partition

Each media object is divided into partitions using the standard IBM PC hard disk format. This scheme allows up to four partitions per piece of media. NetWare, however, currently allows only one NetWare partition per piece of media. Use MM_InitializePartitionTable and MM_CreatePartition function calls to create two partition objects (IDs 10 and 11 in the figure).

MM_InitializePartitionTable is needed only if the partition table contains a non-IBM PC partition table and partition table signature, or the partition table does not currently exist (such as new media). The function MM_CreatePartition will verify the validity of the partition table before creating a partition object. The function MM_DeletePartition will remove the NetWare partition from the media and delete the partition object from the database.

If non-NetWare (such as DOS) partitions exist, they will also be children of the media object.

Application developers should verify that they create the following objects on the NetWare partition only. Use MM_ReturnObjectSpecificInfo to verify the partition object and check the partitionType parameter in the PartitionSpecificInfoDef structure returned by this API. Currently, only the lower BYTE of this LONG parameter is important.