// hbapiwmi.h
void ScsiReadCapacity(
[out, HBA_STATUS_QUALIFIERS] HBA_STATUS HBAStatus,
[in] uint8 Cdb[10],
[in, HBAType("HBA_WWN")] uint8 HbaPortWWN[10],
[in, HBAType("HBA_WWN")] uint8 DiscoveredPortWWN[10],
[in] uint64 FcLun,
[out] uint32 ResponseBufferSize,
[out] uint32 SenseBufferSize,
[out] uint8 ScsiStatus,
[out, WmiSizeIs("ResponseBufferSize")] uint8 ResponseBuffer[],
[out, WmiSizeIs("SenseBufferSize")] uint8 SenseBuffer[]
);
View the official Windows hardware development documentationNo description available.
The ScsiReadCapacity WMI method sends a SCSI read capacity command to the indicated device.
HBAStatus On return, contains the status of the operation. For a list of allowed values and their descriptions, see HBA_STATUS. The miniport driver returns this information in the HBAStatus member of a ScsiReadCapacity_OUT structure.
Cdb The command descriptor block that holds the SCSI read capacity command to be sent to the target device. This information is delivered to the miniport driver in the Cdb member of a ScsiReadCapacity_IN structure.
HbaPortWWN A worldwide name for the HBA through which the target is accessed. This information is delivered to the miniport driver in the HbaPortWWN member of a ScsiReadCapacity_IN structure.
DiscoveredPortWWN A worldwide name for the port through which the target device is accessed. This information is delivered to the miniport driver in the DiscoveredPortWWN member of a ScsiReadCapacity_IN structure.
FcLun The logical unit number of the logical unit that will receive the SCSI read capacity command. This information is delivered to the miniport driver in the FcLun member of a ScsiReadCapacity_IN structure.
ResponseBufferSize The size in bytes of the buffer that will hold the results of the read capacity command. The miniport driver returns this information in the ResponseBufferSize member of a ScsiReadCapacity_OUT structure.
SenseBufferSize The size in bytes of the buffer that will hold the SCSI sense data that results from the SCSI inquiry command. The miniport driver returns this information in the SenseBufferSize member of a ScsiReadCapacity_OUT structure.
ScsiStatus The status of the SCSI read capacity command. The miniport driver returns this information in the ScsiStatus member of a ScsiReadCapacity_OUT structure.
ResponseBuffer The results of the SCSI read capacity command. The miniport driver returns this information in the ResponseBuffer member of a ScsiReadCapacity_OUT structure.
SenseBuffer The SCSI sense data that results from the SCSI read capacity command. The miniport driver returns this information in the SenseBuffer member of a ScsiReadCapacity_OUT structure.
Not applicable to WMI methods.
This WMI method belongs to the MSFC_HBAAdapterMethods WMI Class.
| Target platform | Desktop |
| Header | Hbapiwmi.h (include Hbapiwmi.h, Hbaapi.h, or Hbaapi.h) |
| Library | Hbaapi.lib |