Export (0) Print
Expand All

STORAGE_PROPERTY_QUERY structure

The STORAGE_PROPERTY_QUERY structure is used in conjunction with the IOCTL_STORAGE_QUERY_PROPERTY request to retrieve the properties of a storage device or adapter.

Syntax


typedef struct _STORAGE_PROPERTY_QUERY {
  STORAGE_PROPERTY_ID PropertyId;
  STORAGE_QUERY_TYPE  QueryType;
  UCHAR               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 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. For a list of the various query types that can be assigned to this member, see STORAGE_QUERY_TYPE.

AdditionalParameters

Contains an array of bytes that can be used whenever needed to retrieve additional parameters for specific queries.

Remarks

STORAGE_PROPERTY_QUERY indicates the sort of query that the caller is requesting.

A caller that passes this structure as input with IOCTL_STORAGE_QUERY_PROPERTY can request a device descriptor, defined by the STORAGE_DEVICE_DESCRIPTOR structure by specifying a query of type PropertyStandardQuery and a property ID of type StorageDeviceProperty. The caller can request an adapter descriptor, defined by the STORAGE_ADAPTER_DESCRIPTOR structure by specifying a query of type PropertyStandardQuery and a property ID of type StorageAdapterProperty. The caller can test to see if a certain property ID is supported by specifying a query of type PropertyExistsQuery instead of PropertyStandardQuery.

Requirements

Header

Ntddstor.h (include Ntddstor.h)

See also

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

Show:
© 2014 Microsoft