MSDN Home >  MSDN Library >  Storage Devices >  Reference >  Storage Structures >  General Storage Structures
 
Storage Devices: Windows DDK

STORAGE_PROPERTY_QUERY

[This is preliminary documentation and subject to change.]

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.

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, 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.

Headers

Declared in ntddstor.h. Include ntddstor.h.

Comments

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.

See Also

IOCTL_STORAGE_QUERY_PROPERTY, STORAGE_DESCRIPTOR_HEADER, STORAGE_QUERY_TYPE, STORAGE_DEVICE_DESCRIPTOR, STORAGE_ADAPTER_DESCRIPTOR, STORAGE_PROPERTY_ID

 Contact Us   |  E-Mail this Page   |  MSDN Flash Newsletter
 © 2003 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy Statement   Accessibility