Previous Next

StrMiniReceiveStreamDataPacket

VOID STREAMAPI
  StrMiniReceiveStreamDataPacket(
    IN OUT PHW_STREAM_REQUEST_BLOCK  pSRB
    );

Parameters

pSRB
Pointer to the stream request block.

Return Value

None

Headers

Declared in strmini.h. Include strmini.h.

Comments

The stream class driver calls the minidriver's StrMiniReceiveStreamDataPacket routine to handle read and write requests for a specific stream.

The minidriver registers its StrMiniReceiveStreamDataPacket routine as follows: When the class driver opens the stream, it passes a SRB_OPEN_STREAM request block to the minidriver's StrMiniReceiveDevicePacket routine. The StreamObject of the request packet points to a HW_STREAM_OBJECT. The minidriver sets the ReceiveDataPacket member of the structure pointed to by pSRB->StreamObject to the minidriver's StrMiniReceiveDataPacket routine.

Upon completion of its handling of the request, the minidriver passes the structure back to the class driver by calling StreamClassStreamNotification(StreamRequestComplete, pSRB->StreamObject, pSRB).

See information on relevant SRB codes in Stream Class SRB Reference.

When the minidriver finishes its processing of the request, it enters the return status of the operation in pSRB->Status. The minidriver should enter STATUS_SUCCESS for normal successful processing. If the minidriver does not support that Command value, it should set pSRB->Status to STATUS_NOT_IMPLEMENTED. If there is a device hardware error that prevents the minidriver from completing the request, it should set pSRB->Status to STATUS_IO_DEVICE_ERROR. Other error codes the routine uses in specific circumstances are listed above with the specific Command code.