PHW_CANCEL_SRB callback function (strmini.h)

The class driver calls the minidriver's StrMiniCancelPacket routine to signal that a stream request has been canceled.

Syntax

PHW_CANCEL_SRB PhwCancelSrb;

void PhwCancelSrb(
  [in] IN PHW_STREAM_REQUEST_BLOCK SRB
)
{...}

Parameters

[in] SRB

Pointer to the stream request that had been canceled.

Return value

None

Remarks

The minidriver specifies this routine in the HwCancelPacket member of its HW_INITIALIZATION_DATA structure. The minidriver passes this structure to the class driver when it registers itself by calling StreamClassRegisterMinidriver.

Minidrivers that rely on the class driver to handle synchronization should, once they have successfully canceled a request, signal to the class driver that they are ready for another request by using StreamClassStreamNotification or StreamClassDeviceNotification with the appropriate ReadyForNextXxxRequest.

Requirements

Requirement Value
Target Platform Desktop
Header strmini.h (include Strmini.h)