VDS_DISK_STATUS 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 object status values for a disk.
Syntax
typedef enum _VDS_DISK_STATUS {
VDS_DS_UNKNOWN = 0,
VDS_DS_ONLINE = 1,
VDS_DS_NOT_READY = 2,
VDS_DS_NO_MEDIA = 3,
VDS_DS_FAILED = 5,
VDS_DS_MISSING = 6,
VDS_DS_OFFLINE = 4
} VDS_DISK_STATUS;
Constants
VDS_DS_UNKNOWN Value: 0 The provider failed to get the disk properties from the driver (unknown status, unknown health), or the provider cannot access the disk (unknown status, healthy). |
VDS_DS_ONLINE Value: 1 The disk is available. The disk status value can be VDS_DS_ONLINE, even if the status of the containing pack is VDS_PS_OFFLINE. |
VDS_DS_NOT_READY Value: 2 The disk is currently not ready to use. For example, if you use ACPI Power Management to request that a disk hibernate (spin down), the disk becomes temporarily unavailable. |
VDS_DS_NO_MEDIA Value: 3 The disk is removable media, such as a CD-ROM drive, or contains no media. |
VDS_DS_FAILED Value: 5 The disk is unavailable and cannot be used. |
VDS_DS_MISSING Value: 6 No physical device is present for the disk object, even though the pack configuration information lists the disk. This status value applies to dynamic disks only. |
VDS_DS_OFFLINE Value: 4 The disk is offline. Windows Vista and Windows Server 2003: This flag is not supported. |
Remarks
The VDS_DISK_PROP structure includes a VDS_DISK_STATUS value as a member to indicate the current status of a disk.
Note Additional constants might be added to the VDS_DISK_STATUS enumeration in future Windows versions. For this reason, your application must be designed to gracefully handle an unrecognized VDS_DISK_STATUS enumeration constant.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | vds.h |