WDF_USB_CONTINUOUS_READER_CONFIG_INIT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfusb-wdf_usb_continuous_reader_config_init)

WDF_USB_CONTINUOUS_READER_CONFIG_INIT function

Description

[Applies to KMDF and UMDF]

The WDF_USB_CONTINUOUS_READER_CONFIG_INIT function initializes a WDF_USB_CONTINUOUS_READER_CONFIG structure.

Parameters

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.

Remarks

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.

See also

EvtUsbTargetPipeReadComplete

WDF_USB_CONTINUOUS_READER_CONFIG