MM_PartitionInfoStruct

A structure returned by MM_ReturnPartitionTableInfo when the
application requests information about a partition. 

Syntax

struct MM_PartitionInfoStruct
{
  BYTE   partitionName [32]
  LONG   beginningSector
  LONG   numbeOfSectors
  LONG   objectID
  LONG   bootFlag
}

Fields

partitionName
Type of partition as an ASCII string (e.g., "NetWare
	Partition"). 

beginningSector
The beginning sector number of the physical partition. 

numbeOfSectors
The number of sectors in the physical partition. 

objectID
The Media Manager object ID of a defined partition for
this
physical partition, if any. -1 means no
partition. 

bootFlag
The boot flag of the partition entry.



PartitionInfoDef

This structure is returned by MM_Return_Object_Specific_Info
when the application requests information about a Partition object. 

Syntax

struct PartitionInfoDef
{
     LONG   PartitionerType;
	    LONG   partitionType;
		   LONG   partitionOffset;
		      LONG   partitionSize;
			     LONG   reserved [8];
};

Fields

PartitionerType
Partition scheme identifier (i.e., DOS, IBM, etc.). 

partitionType
Number representing partition type. Only the lower BYTE is
important. 

partitionOffset
Beginning sector number of the partition. 

partitionSize
Number of sectors in partition; default size is512 KB. 

reserved
Reserved for future use.


Partition Table Status

0
MM_PARTITION_VALID
1
MM_PARTITION_NONE
2
MM_PARTITION_INCONSISTENT
3
MM_PARTITION_INVALID


Partition Types

0x64
NETWARE_PARTITION_286
0x65
NETWARE_PARTITION_386
0x66
NETWARE_PARTITION_SMS


PartitionSpecificInfoDef

A pointer to this structure is returned from the MM_ReturnObjectSpecificInfo
function when an IO object whose requested specific
information is a partition object, in the IO class. 

Syntax

struct PartitionSpecificInfoDef 
{ 
  LONG   status; 
  LONG   partitionertype; 
  LONG   partitiontype; 
  LONG   partitionoffset; 
  LONG   partitionsize; 
  LONG   reserved[2];  
  BYTE   label[MM_MAX_OBJECT_STRING_LEN]; 
};

Fields

status
The partition's status.

partitionertype
Currently always one.

partitiontype
The partition type.

partitionoffset
The sector offset, relative to the media's sector 0, to the
beginning of the partition.

partitionsize
The partition's physical size as defined in the
partition table. Note: this value is not always the
same as the capacity value reported in the
IOObjectGenericInfoDef structure for a partition
object.

reserved
undefined

label
If status indicates that the partition
is labeled then this field contains the
null-terminated label. This label will
not be larger than
MM_MAX_OBJECT_STRING_LEN - 1.

See Also

Partition Object Manager 
Partition Object Status
