// storport.h
ULONG StorPortGetRequestInfo(
[in] PVOID HwDeviceExtension,
[in] PSCSI_REQUEST_BLOCK Srb,
[out] PSTOR_REQUEST_INFO RequestInfo
);
View the official Windows Driver Kit DDI referenceNo description available.
The StorPortGetRequestInfo routine retrieves the IO request information associated with a SCSI request block (SRB) and returns it in a STOR_REQUEST_INFO structure.
HwDeviceExtension [in]A pointer to the hardware device extension for the host bus adapter (HBA).
Srb [in]A pointer to the SRB to be queried.
RequestInfo [out]A pointer to a caller-supplied STOR_REQUEST_INFO structure.
The StorPortGetRequestInfo routine returns one of these status codes:
| Return code | Description |
|---|---|
| STOR_STATUS_UNSUPPORTED_VERSION | The version specified for STOR_REQUEST_INFO is invalid. |
| STOR_STATUS_SUCCESS | The operation was successful. |
| STOR_STATUS_INVALID_PARAMETER | Either Srb or RequestInfo is set to NULL. |
The caller of StorPortGetRequestInfo must set the Version member of RequestInfo to STOR_REQUEST_INFO_VER_1. Otherwise, function will return STOR_STATUS_UNSUPPORTED_VERSION.