VDS_PARTITION_PROP structure (vds.h)

[Beginning with Windows 8 and Windows Server 2012, the Virtual Disk Service COM interface is superseded by the Windows Storage Management API.]

Defines the properties of a partition.

Syntax

typedef struct _VDS_PARTITION_PROP {
  VDS_PARTITION_STYLE PartitionStyle;
  ULONG               ulFlags;
  ULONG               ulPartitionNumber;
  ULONGLONG           ullOffset;
  ULONGLONG           ullSize;
  union {
    VDS_PARTITION_INFO_MBR Mbr;
    VDS_PARTITION_INFO_GPT Gpt;
  };
} VDS_PARTITION_PROP;

Members

PartitionStyle

The styles enumerated by VDS_PARTITION_STYLE. The style is either master boot record (VDS_PST_MBR) or GUID partition table (VDS_PST_GPT). This member is the discriminant for the union.

ulFlags

The partition flags enumerated by VDS_PARTITION_FLAG.

ulPartitionNumber

The number assigned to the partition.

ullOffset

The partition offset.

ullSize

The size of the partition in bytes.

Mbr

If PartitionStyle is VDS_PST_MBR, MBR-specific partition details. For more information see VDS_PARTITION_INFO_MBR.

Gpt

If PartitionStyle is VDS_PST_GPT, GPT-specific partition details. For more information see VDS_PARTITION_INFO_GPT.

Remarks

The IVdsAdvancedDisk::GetPartitionProperties and IVdsAdvancedDisk::QueryPartitions methods return this structure to report the property details of a partition.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header vds.h

See also

IVdsAdvancedDisk::GetPartitionProperties

IVdsAdvancedDisk::QueryPartitions

VDS Structures

VDS_PARTITION_FLAG

VDS_PARTITION_STYLE