StorPortGetRequestInfo function (storport.h)

The StorPortGetRequestInfo routine retrieves the IO request information associated with a SCSI request block (SRB) and returns it in a STOR_REQUEST_INFO structure.

Syntax

ULONG StorPortGetRequestInfo(
  [in]  PVOID               HwDeviceExtension,
  [in]  PSCSI_REQUEST_BLOCK Srb,
  [out] PSTOR_REQUEST_INFO  RequestInfo
);

Parameters

[in] HwDeviceExtension

A pointer to the hardware device extension for the host bus adapter (HBA).

[in] Srb

A pointer to the SRB to be queried.

[out] RequestInfo

A pointer to a caller-supplied STOR_REQUEST_INFO structure.

Return value

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.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Available in Windows 8 and later versions of Windows.
Target Platform Universal
Header storport.h (include Storport.h)
IRQL Any

See also

STOR_REQUEST_INFO