StorPortGetRequestInfo routine

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

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.

Return value

The StorPortGetRequestInfo routine returns one of these status codes:

Return codeDescription
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

Target platform

Universal

Version

Available in Windows 8 and later versions of Windows.

Header

Storport.h (include Storport.h)

IRQL

Any

See also

STOR_REQUEST_INFO

 

 

Send comments about this topic to Microsoft

Anzeigen: