다음을 통해 공유


DiskIdType

Describes the partition type of the physical disk resource. The following table summarizes the attributes of the DiskIdType property.

Attribute Value
Data type DWORD
Access Read/write
Status Required
Structure CLUSPROP_DWORD
Minimum 0
Maximum 5000
Default 5000

Remarks

The DiskIdType property can be set to one of the following values.

Value Description
PARTITION_STYLE_MBR (0)
The disk has a Master Boot Record (MBR) partition.
PARTITION_STYLE_GPT (1)
The disk has a GUID Partition Table (GPT) partition.
5000
The disk has an unrecognized partitioning scheme.

PARTITION_STYLE_MBR and PARTITION_STYLE_GPT are defined in WinIoCtl.h.

Examples

The property value portion of a property list entry for DiskIdType can be set with the following example code.

DWORD          DiskIdTypeData = 0;
CLUSPROP_DWORD DiskIdTypeValue;

DiskIdTypeValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
DiskIdTypeValue.cbLength  = sizeof(DWORD);
DiskIdTypeValue.dw        = DiskIdTypeData;

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

See also

Physical Disk Private Properties