The VOLUME_INFO structure provides information about a volume.
typedef struct volumeinfo {
LdmObjectId id;
VOLUMETYPE type;
VOLUMELAYOUT layout;
LONGLONG length;
LdmObjectId fsId;
unsigned long memberCount;
VOLUMESTATUS status;
LONGLONG lastKnownState;
LdmObjectId taskId;
unsigned long vflags;
} VOLUME_INFO;
type:
Specifies the volume type.
layout: Specifies the volume layout.
length: Specifies the length of the volume in bytes.
fsId: Specifies the object identifier for the volume's file system, which defaults to 0 if no file system is present on the volume.
memberCount: Specifies the number of regions that compose the volume.
status: Specifies the volume status.
taskId: Specifies the task identifier of the associated user request. If no request is made, the value is 0. For more information, see section 2.2.17.
vflags: Specifies the bitmap of volume flags. The value of this field is generated by combining zero or more of the following applicable flags with a logical OR operation.
This field MUST be one of the following values.
| Value | Meaning |
VOLUME_FORMAT_IN_PROGRESS 0x00000001 | Volume is currently being formatted.
|
VOLUME_HAS_PAGEFILE 0x00000004 | Volume contains the paging file.
|
VOLUME_IS_BOOT_VOLUME 0x00000100 | Volume contains the boot partition.
|
VOLUME_IS_RESTARTABLE 0x00000400 | The RestartVolume method can be successfully called on this volume.
|
VOLUME_IS_SYSTEM_VOLUME 0x00000800 | Volume contains the system directory.
|
VOLUME_HAS_RETAIN_PARTITION 0x00001000 | Volume has an underlying partition.
|
VOLUME_HAD_BOOT_INI 0x00002000 | Volume contained the Boot.ini file used when the operating system was last started.
|
VOLUME_CORRUPT 0x00004000 | Volume is corrupt.
|
VOLUME_HAS_CRASHDUMP 0x00008000 | Volume contains a crash dump file.
|
VOLUME_IS_CURR_BOOT_VOLUME 0x00010000 | Volume is the current boot volume.
|
VOLUME_HAS_HIBERNATION 0x00020000 | Volume contains a hibernation image.
|