2.2.1.2.22 VDS_VOLUME_STATUS

The VDS_VOLUME_STATUS enumeration defines the set of object status values for a volume.

 typedef enum _VDS_VOLUME_STATUS
 {
   VDS_VS_UNKNOWN = 0x00000000,
   VDS_VS_ONLINE = 0x00000001,
   VDS_VS_NO_MEDIA = 0x00000003,
   VDS_VS_OFFLINE = 0x00000004,
   VDS_VS_FAILED = 0x00000005
 } VDS_VOLUME_STATUS;

VDS_VS_UNKNOWN:  The status of the volume is unknown.

VDS_VS_ONLINE:  The volume is available.

VDS_VS_NO_MEDIA:  The volume belongs to a removable media device, such as a CD-ROM or DVD-ROM drive, but the device does not currently have media in the drive.

VDS_VS_OFFLINE:  When this status is set, it (1) indicates that no path names for the volume are available for use by applications, and (2) prevents READ and READ|WRITE handles to the volume device being opened. When a volume transitions to this state, calls to open a new handle against the volume device fail, but any in-progress I/O against the volume will complete before all I/O to the volume is stopped.<13>

VDS_VS_FAILED:  The volume is unavailable.