Bewerken

Delen via


STORAGE_PROPERTY_QUERY structure (ntddstor.h)

This structure is used in conjunction with IOCTL_STORAGE_QUERY_PROPERTY 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 (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. For a list of the various query types that can be assigned to this member, see STORAGE_QUERY_TYPE.

AdditionalParameters[1]

Contains an array of bytes with additional input parameters that are needed for the PropertyId query. Not all PropertyId values require additional input parameters.

Remarks

The results of the query can be one of several structures depending on the value of the PropertyId member. These values are enumerated by the STORAGE_PROPERTY_ID enumeration.

If the QueryType member is set to PropertyExistsQuery, then no structure is returned. For more info, see STORAGE_QUERY_TYPE.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header ntddstor.h (include Ntddstor.h)

See also

IOCTL_STORAGE_QUERY_PROPERTY

STORAGE_ADAPTER_DESCRIPTOR

STORAGE_DESCRIPTOR_HEADER

STORAGE_DEVICE_DESCRIPTOR

STORAGE_PROPERTY_ID

STORAGE_QUERY_TYPE