ScsiPortWmiGetReturnSize macro

The ScsiPortWmiGetReturnSize routine indicates the number of bytes of data to be returned by a miniport driver for a WMI SRB.

Note  The SCSI port driver and SCSI miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.
 

Syntax


ULONG ScsiPortWmiGetReturnSize(
   PSCSIWMI_REQUEST_CONTEXT RequestContext
);

Parameters

RequestContext

Pointer to the request context for this SRB.

Return value

The return value represents the data transfer length for the SRB. The miniport driver should set Srb->DataTransferLength to the value returned by ScsiPortWmiGetReturnSize before completing the SRB.

Remarks

A miniport driver must call ScsiPortWmiGetReturnSize to obtain the value to put into Srb->DataTransferLength before completing the SRB. ScsiPortWmiGetReturnSize should be called sometime after the miniport driver calls ScsiWmiPostProcess.

Requirements

Target platform

Header

Scsiwmi.h (include Miniport.h or Scsi.h)

See also

ScsiPortWmiGetReturnStatus
ScsiPortWmiPostProcess
SCSIWMI_REQUEST_CONTEXT

 

 

Send comments about this topic to Microsoft

Show: