VDS_VDISK_STATE enumeration (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 set of status values for a virtual disk object.
Syntax
typedef enum _VDS_VDISK_STATE {
VDS_VST_UNKNOWN = 0,
VDS_VST_ADDED,
VDS_VST_OPEN,
VDS_VST_ATTACH_PENDING,
VDS_VST_ATTACHED_NOT_OPEN,
VDS_VST_ATTACHED,
VDS_VST_DETACH_PENDING,
VDS_VST_COMPACTING,
VDS_VST_MERGING,
VDS_VST_EXPANDING,
VDS_VST_DELETED,
VDS_VST_MAX
} VDS_VDISK_STATE;
Constants
VDS_VST_UNKNOWN Value: 0 VDS was not able to identify the virtual disk's current status. |
VDS_VST_ADDED The virtual disk is has been added to the VDS virtual disk provider. |
VDS_VST_OPEN A handle has been opened to the virtual disk file. |
VDS_VST_ATTACH_PENDING The virtual disk is being attached |
VDS_VST_ATTACHED_NOT_OPEN The virtual disk is attached, but a handle has not been opened to the virtual disk file. |
VDS_VST_ATTACHED The virtual disk is attached and a handle has been opened to the virtual disk file. |
VDS_VST_DETACH_PENDING The virtual disk is being detached and a handle is being opened to the virtual disk file. |
VDS_VST_COMPACTING The virtual disk is being compacted. |
VDS_VST_MERGING The virtual disk is being merged. |
VDS_VST_EXPANDING The virtual disk is being expanded. |
VDS_VST_DELETED The virtual disk has been deleted. |
VDS_VST_MAX This value is reserved for system use. |
Remarks
Note Additional constants might be added to the VDS_VDISK_STATE enumeration in future Windows versions. For this reason, your application must be designed to gracefully handle an unrecognized VDS_VDISK_STATE enumeration constant.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Header | vds.h |