PFNUSBCAMD_CancelBulkReadWrite callback function (usbcamdi.h)

The USBCAMD_CancelBulkReadWrite service cancels a pending bulk read or write request.

Syntax

PFNUSBCAMD_CancelBulkReadWrite PfnusbcamdCancelbulkreadwrite;

NTSTATUS PfnusbcamdCancelbulkreadwrite(
  [in] PVOID DeviceContext,
  [in] ULONG PipeIndex
)
{...}

Parameters

[in] DeviceContext

Pointer to device-specific context.

[in] PipeIndex

Specifies the index of the bulk pipe to cancel the read or write request.

Return value

USBCAMD_CancelBulkReadWrite returns STATUS_SUCCESS if the call was successful. Other possible error codes include:

Return code Description
STATUS_INVALID_PARAMETER USBCAMD may return STATUS_INVALID_PARAMETER for a number of reasons, including: The value passed in the PipeIndex argument is invalid, the type of the pipe specified by the PipeIndex argument represents an invalid type of pipe, or the current IRQL >= DISPATCH_LEVEL.

Remarks

USBCAMD_CancelBulkReadWrite is not available in USBCAMD version 1.0.

Requirements

Requirement Value
Target Platform Desktop
Header usbcamdi.h (include Usbcamdi.h)
IRQL PASSIVE_LEVEL

See also

USBCAMD_INTERFACE