Skip to content

Latest commit

 

History

History
140 lines (92 loc) · 5.54 KB

ns-vds-vds_drive_prop2.md

File metadata and controls

140 lines (92 loc) · 5.54 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:vds._VDS_DRIVE_PROP2
VDS_DRIVE_PROP2 (vds.h)
The VDS_DRIVE_PROP2 structure (vds.h) defines the properties of a drive object.
*PVDS_DRIVE_PROP2
PVDS_DRIVE_PROP2
PVDS_DRIVE_PROP2 structure pointer
VDS_DRIVE_PROP2
VDS_DRIVE_PROP2 structure
VDS_H_FAILED
VDS_H_HEALTHY
VDS_H_PENDING_FAILURE
VDS_H_REPLACED
VDS_H_UNKNOWN
base.vds_drive_prop2
vds/PVDS_DRIVE_PROP2
vds/VDS_DRIVE_PROP2
vdshwprv/PVDS_DRIVE_PROP2
vdshwprv/VDS_DRIVE_PROP2
base\vds_drive_prop2.htm
base
af932865-abb3-4dee-a7dc-3aa06fd167f6
08/05/2022
*PVDS_DRIVE_PROP2, PVDS_DRIVE_PROP2, PVDS_DRIVE_PROP2 structure pointer, VDS_DRIVE_PROP2, VDS_DRIVE_PROP2 structure, VDS_H_FAILED, VDS_H_HEALTHY, VDS_H_PENDING_FAILURE, VDS_H_REPLACED, VDS_H_UNKNOWN, base.vds_drive_prop2, vds/PVDS_DRIVE_PROP2, vds/VDS_DRIVE_PROP2, vdshwprv/PVDS_DRIVE_PROP2, vdshwprv/VDS_DRIVE_PROP2
vds.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
Windows
VDS_DRIVE_PROP2, *PVDS_DRIVE_PROP2
19H1
_VDS_DRIVE_PROP2
vds/_VDS_DRIVE_PROP2
PVDS_DRIVE_PROP2
vds/PVDS_DRIVE_PROP2
VDS_DRIVE_PROP2
vds/VDS_DRIVE_PROP2
c++
APIRef
kbSyntax
HeaderDef
Vds.h
VdsHwPrv.h
VDS_DRIVE_PROP2

VDS_DRIVE_PROP2 structure

-description

[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 drive object. This structure is identical to the VDS_DRIVE_PROP structure, except that it includes the enclosure number, bus type, and spindle speed as members.

-struct-fields

-field id

The GUID of the drive object.

-field ullSize

The size of the drive, in bytes.

-field pwszFriendlyName

A NULL-terminated wide-character string that contains the name of the drive.

-field pwszIdentification

A NULL-terminated wide-character string that contains the drive identifier.

-field ulFlags

A bitmask of
VDS_DRIVE_FLAG enumeration values.

-field status

A
VDS_DRIVE_STATUS enumeration value that specifies the status of the drive.

-field health

A VDS_HEALTH enumeration value that specifies the health status of the drive. The following are the valid values for this member.

Windows Server 2008, Windows Vista and Windows Server 2003:  VDS_H_REPLACED and VDS_H_PENDING_FAILURE are not supported.

VDS_H_UNKNOWN (0)

VDS_H_HEALTHY (1)

VDS_H_FAILED (8)

VDS_H_REPLACED (9)

VDS_H_PENDING_FAILURE (10)

-field sInternalBusNumber

The number of the bus to which the drive is connected. This number is an implementer-assigned value that uniquely identifies the bus within the subsystem. It is not constrained by the number of buses that the subsystem contains, and it is not related to the value of the sNumberOfInternalBuses member of the VDS_SUB_SYSTEM_PROP structure.

-field sSlotNumber

The number of the slot that the drive occupies. This number is an implementer-assigned value that uniquely identifies the slot within the bus. It is not constrained by the number of slots that the bus contains, and it is not related to the value of the sMaxNumberOfSlotsEachBus member of the VDS_SUB_SYSTEM_PROP structure.

-field ulEnclosureNumber

The number of the enclosure that contains the drive. A value of ULONG_MAX indicates that this number is not defined for the drive. Because some enclosure numbering schemes are zero-based, zero is a valid value for this member. This member corresponds to the ulEnclosureNumber parameter of the IVdsSubSystem2::GetDrive2 method.

-field busType

A VDS_STORAGE_BUS_TYPE value that specifies the bus type of the drive. A value of zero means that the bus type is unknown.

-field ulSpindleSpeed

The spindle speed of the drive, in RPM. The default value for this member is zero. A value of zero means that the spindle speed is unknown. A value of 1 means that the drive does not have rotating media. (For example, it might be a solid-state drive.)

-remarks

This structure is used by the IVdsDrive2::GetProperties2 method to return the properties for a drive object.