// wdfusb.h
VOID WDF_USB_CONTINUOUS_READER_CONFIG_INIT(
[out] PWDF_USB_CONTINUOUS_READER_CONFIG Config,
[in] PFN_WDF_USB_READER_COMPLETION_ROUTINE EvtUsbTargetPipeReadComplete,
[in] WDFCONTEXT EvtUsbTargetPipeReadCompleteContext,
[in] size_t TransferLength
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WDF_USB_CONTINUOUS_READER_CONFIG_INIT function initializes a WDF_USB_CONTINUOUS_READER_CONFIG structure.
Config
[out]A pointer to a WDF_USB_CONTINUOUS_READER_CONFIG structure.
EvtUsbTargetPipeReadComplete
[in]A pointer to the driver's EvtUsbTargetPipeReadComplete callback function.
EvtUsbTargetPipeReadCompleteContext
[in]An untyped pointer to driver-defined context information that the framework passes to the driver's EvtUsbTargetPipeReadComplete callback function.
TransferLength
[in]The maximum length, in bytes, of data that can be received from the device.
The WDF_USB_CONTINUOUS_READER_CONFIG_INIT function zeros the specified WDF_USB_CONTINUOUS_READER_CONFIG structure and sets the structure's Size member. It also sets the structure's EvtUsbTargetPipeReadComplete, EvtUsbTargetPipeReadCompleteContext, and TransferLength members to the specified values.
Note that WDF_USB_CONTINUOUS_READER_CONFIG_INIT does not set the structure's EvtUsbTargetPipeReadersFailed member.
After calling WDF_USB_CONTINUOUS_READER_CONFIG_INIT, the driver can optionally add a EvtUsbTargetPipeReadersFailed pointer to the WDF_USB_CONTINUOUS_READER_CONFIG structure.
For a code example that uses WDF_USB_CONTINUOUS_READER_CONFIG_INIT, see WdfUsbTargetPipeConfigContinuousReader.
WDF_USB_CONTINUOUS_READER_CONFIG