STORAGE_PROPERTY_QUERY structure
Indicates the properties of a storage device or adapter to retrieve as the input buffer passed to the IOCTL_STORAGE_QUERY_PROPERTY control code.
Syntax
typedef struct _STORAGE_PROPERTY_QUERY { STORAGE_PROPERTY_ID PropertyId; STORAGE_QUERY_TYPE QueryType; BYTE AdditionalParameters[1]; } STORAGE_PROPERTY_QUERY, *PSTORAGE_PROPERTY_QUERY;
Members
- PropertyId
-
Indicates whether the caller is requesting a device descriptor, an adapter descriptor, a write cache property, a device unique ID (DUID), or the device identifiers provided in the device's SCSI vital product data (VPD) page. For a list of the property IDs that can be assigned to this member, see STORAGE_PROPERTY_ID.
- QueryType
-
Contains flags indicating the type of query to be performed as enumerated by the STORAGE_QUERY_TYPE enumeration.
- AdditionalParameters
-
Contains an array of bytes that can be used to retrieve additional parameters for specific queries.
Remarks
The optional output buffer returned through the lpOutBuffer parameter of the IOCTL_STORAGE_QUERY_PROPERTY control code can be one of several structures depending on the value of the PropertyId member. If the QueryType member is set to PropertyExistsQuery, then no structure is returned.
| Value | lpOutBuffer structure |
|---|---|
| StorageDeviceProperty (0) | STORAGE_DEVICE_DESCRIPTOR |
| StorageAdapterProperty (1) | STORAGE_ADAPTER_DESCRIPTOR |
| StorageDeviceIdProperty (2) | STORAGE_DEVICE_ID_DESCRIPTOR |
| StorageDeviceUniqueIdProperty (3) | STORAGE_DEVICE_UNIQUE_IDENTIFIER |
| StorageDeviceWriteCacheProperty (4) | STORAGE_WRITE_CACHE_PROPERTY |
| StorageMiniportProperty (5) | STORAGE_MINIPORT_DESCRIPTOR |
| StorageAccessAlignmentProperty (6) | STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR |
| StorageDeviceSeekPenaltyProperty (7) | DEVICE_SEEK_PENALTY_DESCRIPTOR |
| StorageDeviceTrimProperty (8) | DEVICE_TRIM_DESCRIPTOR |
| StorageDeviceWriteAggregationProperty (9) | DEVICE_WRITE_AGGREGATION_DESCRIPTOR |
| StorageDeviceLBProvisioningProperty (11) | DEVICE_LB_PROVISIONING_DESCRIPTOR |
| StorageDevicePowerProperty (12) | DEVICE_POWER_DESCRIPTOR |
| StorageDeviceCopyOffloadProperty (13) | DEVICE_COPY_OFFLOAD_DESCRIPTOR |
| StorageDeviceResiliencyProperty (14) | STORAGE_DEVICE_RESILIENCY_DESCRIPTOR |
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
See also
- Disk Management Structures
- IOCTL_STORAGE_QUERY_PROPERTY
- STORAGE_DESCRIPTOR_HEADER
- STORAGE_QUERY_TYPE
- STORAGE_DEVICE_DESCRIPTOR
- STORAGE_ADAPTER_DESCRIPTOR
- STORAGE_PROPERTY_ID
Send comments about this topic to Microsoft
Build date: 4/16/2013