STORAGE_PROPERTY_QUERY - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

typedef struct _STORAGE_PROPERTY_QUERY {
  STORAGE_PROPERTY_ID PropertyId;
  STORAGE_QUERY_TYPE  QueryType;
  UCHAR               AdditionalParameters[1];
} STORAGE_PROPERTY_QUERY, *PSTORAGE_PROPERTY_QUERY;

View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct _STORAGE_PROPERTY_QUERY {
  STORAGE_PROPERTY_ID PropertyId;
  STORAGE_QUERY_TYPE  QueryType;
  BYTE                AdditionalParameters[1];
} STORAGE_PROPERTY_QUERY, *PSTORAGE_PROPERTY_QUERY;

View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddstor-_storage_property_query)

STORAGE_PROPERTY_QUERY structure

Description

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

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

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.

See also

IOCTL_STORAGE_QUERY_PROPERTY

STORAGE_ADAPTER_DESCRIPTOR

STORAGE_DESCRIPTOR_HEADER

STORAGE_DEVICE_DESCRIPTOR

STORAGE_PROPERTY_ID

STORAGE_QUERY_TYPE


Win32 API reference (ns-winioctl-storage_property_query)

STORAGE_PROPERTY_QUERY structure

Description

Indicates the properties of a storage device or adapter to retrieve as the input buffer passed to the IOCTL_STORAGE_QUERY_PROPERTY control code.

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.

Value Meaning
PropertyStandardQuery

0
Instructs the port driver to report a device descriptor, an adapter descriptor or a unique hardware device ID (DUID).
PropertyExistsQuery

1
Instructs the port driver to report whether the descriptor is supported.

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.

See also

Disk Management Structures

IOCTL_STORAGE_QUERY_PROPERTY

STORAGE_ADAPTER_DESCRIPTOR

STORAGE_DESCRIPTOR_HEADER

STORAGE_DEVICE_DESCRIPTOR

STORAGE_PROPERTY_ID

STORAGE_QUERY_TYPE