ScsiPortWmiGetReturnSize macro (scsiwmi.h)

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

void ScsiPortWmiGetReturnSize(
   RequestContext
);

Parameters

RequestContext

Pointer to the request context for this SRB.

Return value

None

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

Requirement Value
Target Platform Desktop
Header scsiwmi.h (include Miniport.h, Scsi.h)

See also

SCSIWMI_REQUEST_CONTEXT

ScsiPortWmiGetReturnStatus

ScsiPortWmiPostProcess