Share via


SendScsiInquiry method of the MSIscsiInitiator_SessionClass class

The SendScsiInquiry method sends SCSI inquiry command to the specified Logical Unit Number (LUN).

Syntax

uint32 SendScsiInquiry(
  [in]  uint64 Lun,
  [in]  uint8  EvpdCmddt,
  [in]  uint8  PageCode,
  [out] uint8  ScsiStatus,
  [out] uint8  ResponseBuffer[],
  [out] uint8  SenseBuffer[]
);

Parameters

Lun [in]

The LUN to query for SCSI inquiry data.

EvpdCmddt [in]

The values to assign to the EVP (Enable Vital Product data) and CmdDt (Command Support Data) bits in the INQUERY command. Bits 0 (EVP) and 1 (CmdDt) of the EvpdCmddt parameter are inserted into bits 0 and 1, respectively, of the second byte of the Command Descriptor Block (CDB) of the INQUIRY command.

PageCode [in]

The page code, which is inserted into the third byte of the CDB of the INQUERY command.

ScsiStatus [out]

The execution status of the CDB.

ResponseBuffer [out]

A buffer containing the inquiry data.

SenseBuffer [out]

A buffer containing the sense data.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Namespace
Root\WMI
MOF
Iscsidsc.mof

See also

MSIscsiInitiator_SessionClass