VDS_VDISK_PROPERTIES 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 virtual disk.

Syntax

typedef struct _VDS_VDISK_PROPERTIES {
  VDS_OBJECT_ID        Id;
  VDS_VDISK_STATE      State;
  VIRTUAL_STORAGE_TYPE VirtualDeviceType;
  ULONGLONG            VirtualSize;
  ULONGLONG            PhysicalSize;
  LPWSTR               pPath;
  LPWSTR               pDeviceName;
  DEPENDENT_DISK_FLAG  DiskFlag;
  BOOL                 bIsChild;
  LPWSTR               pParentPath;
} VDS_VDISK_PROPERTIES, *PVDS_VDISK_PROPERTIES;

Members

Id

Unique VDS-specific session identifier of the disk.

State

A VDS_VDISK_STATE enumeration value that specifies the virtual disk state.

VirtualDeviceType

A pointer to a VIRTUAL_STORAGE_TYPE structure that specifies the storage device type of the virtual disk.

VirtualSize

The size, in bytes, of the virtual disk.

PhysicalSize

The on-disk size, in bytes, of the virtual disk backing file.

pPath

A NULL-terminated wide-character string containing the name and directory path of the backing file for the virtual disk.

pDeviceName

A NULL-terminated wide-character string containing the name and device path of the disk device object for the volume where the virtual disk resides.

DiskFlag

A bitmask of DEPENDENT_DISK_FLAG enumeration values that specify disk dependency information.

bIsChild

TRUE if the virtual disk is a child virtual disk, or FALSE otherwise.

pParentPath

A NULL-terminated wide-character string that contains an optional path to a parent virtual disk object.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header vds.h

See also

IVdsVDisk::GetProperties