Export (0) Print
Expand All
Expand Minimize

ScsiPortWmiGetReturnSize macro

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

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

Header

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

See also

ScsiPortWmiGetReturnStatus
ScsiPortWmiPostProcess
SCSIWMI_REQUEST_CONTEXT

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft