ScsiReportLuns function
The ScsiReportLuns WMI method sends a SCSI report LUNs command to the indicated device.
Syntax
void ScsiReportLuns(
[out, HBA_STATUS_QUALIFIERS] HBA_STATUS HBAStatus,
[in] uint8 Cdb[12],
[in, HBAType("HBA_WWN")] uint8 HbaPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DiscoveredPortWWN[8],
[out] uint32 ResponseBufferSize,
[out] uint32 SenseBufferSize,
[out] uint8 ScsiStatus,
[out, WmiSizeIs("ResponseBufferSize")] uint8 ResponseBuffer[],
[out, WmiSizeIs("SenseBufferSize")] uint8 SenseBuffer[]
);
Parameters
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 ScsiReportLuns_OUT structure.
Cdb
The command descriptor block that holds the SCSI report LUNs command to be sent to the target device. This information is delivered to the miniport driver in the Cdb member of a ScsiReportLuns_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 ScsiReportLuns_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 ScsiReportLuns_IN structure.
ResponseBufferSize
The size in bytes of the buffer that will hold the results of the SCSI report LUNs command. The miniport driver returns this information in the ResponseBufferSize member of a ScsiReportLuns_OUT structure.
SenseBufferSize
The size in bytes of the buffer that will hold the SCSI sense data that results from the SCSI report LUNs command. The miniport driver returns this information in the SenseBufferSize member of a ScsiReportLuns_OUT structure.
ScsiStatus
The status of the SCSI report LUNs command. The miniport driver returns this information in the ScsiStatus member of a ScsiReportLuns_OUT structure.
ResponseBuffer
The results of the SCSI report LUNs command. The miniport driver returns this information in the ResponseBuffer member of a ScsiReportLuns_OUT structure.
SenseBuffer
The SCSI sense data that results from the SCSI report LUNs command. The miniport driver returns this information in the SenseBuffer member of a ScsiReportLuns_OUT structure.
Return value
Not applicable to WMI methods.
Remarks
This WMI method belongs to the MSFC_HBAAdapterMethods WMI Class.
Requirements
Target platform |
Desktop |
Header |
Hbapiwmi.h (include Hbapiwmi.h, Hbaapi.h, or Hbaapi.h) |
Library |
Hbaapi.lib |