SM_ScsiReadCapacity function

The SM_ScsiReadCapacity WMI method sends a SCSI Read Capacity command to the indicated device.

Syntax

void SM_ScsiReadCapacity(
   [in, HBAType("HBA_WWN")] uint8               HbaPortWWN[8],
   [in, HBAType("HBA_WWN")] uint8               DiscoveredPortWWN[8],
   [in, HBAType("HBA_WWN")] uint8               DomainPortWWN[8],
   [in, HBAType("HBA_SCSILUN")] uint64          SmhbaLUN,
   [in] uint8                                   Cdb[16],
   [in] uint32                                  InRespBufferMaxSize,
   [in] uint32                                  InSenseBufferMaxSize,
   [out, HBA_STATUS_QUALIFIERS] HBA_STATUS      HBAStatus,
   [out] uint8                                  ScsiStatus,
   [out] uint32                                 OutRespBufferSize,
   [out] uint32                                 OutSenseBufferSize,
   [out, WmiSizeIs("OutRespBufferSize")] uint8  RespBuffer[],
   [out, WmiSizeIs("OutSenseBufferSize")] uint8 SenseBuffer[]
);

Parameters

HbaPortWWN
A worldwide name (WWN) for the HBA through which the target is accessed. This information is delivered to the miniport driver in the HbaPortWWN member of a ScsiInquiry_IN structure.

DiscoveredPortWWN
A worldwide name (WWN) for the port through which the target device is accessed. This information is delivered to the miniport driver in the DiscoveredPortWWN member of a ScsiInquiry_IN structure.

DomainPortWWN
The worldwide name (WWN) for the callback. It is the Port_Identifier that has the smallest value of any Port_Identifier of an SMP port that is discovered by using the physical port. It has a value of zero if no SMP port has been discovered by using the physical port.

SmhbaLUN
The logical unit number of the logical unit that will receive the SCSI inquiry command. This information is delivered to the miniport driver in the SmhbaLUN member of a ScsiInquiry_IN structure.

Cdb
The command descriptor block that holds the SCSI inquiry command to be sent to the target device. This information is delivered to the miniport driver in the Cdb member of a ScsiInquiry_IN structure.

InRespBufferMaxSize
The maximum size, in bytes, of the response buffer.

InSenseBufferMaxSize
The maximum size, in bytes, for the sense buffer in the response.

HBAStatus
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 ScsiInquiry_OUT structure.

ScsiStatus
The status of the SCSI inquiry command. The miniport driver returns this information in the ScsiStatus member of a ScsiInquiry_OUT structure.

OutRespBufferSize
The size, in bytes, of the buffer that will hold the results of the SCSI inquiry command. The miniport driver returns this information in the ResponseBufferSize member of a ScsiInquiry_OUT structure.

OutSenseBufferSize
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 ScsiInquiry_OUT structure.

RespBuffer
The results of the SCSI inquiry command. The miniport driver returns this information in the ResponseBuffer member of a ScsiInquiry_OUT structure.

SenseBuffer
The SCSI sense data that results from the SCSI inquiry command. The miniport driver returns this information in the SenseBuffer member of a ScsiInquiry_OUT structure.

Return value

Not applicable to WMI methods.

Remarks

This WMI method belongs to the MS_SM_ScsiInformationMethods WMI Class.

Requirements

Target platform

Desktop

Header

Hbapiwmi.h

See also

HBA_STATUS