WDF_USB_CONTINUOUS_READER_CONFIG_INIT
WDF_USB_DEVICE_CREATE_CONFIG
WDF_USB_DEVICE_CREATE_CONFIG_INIT
WdfUsbTargetDeviceCreateIsochUrb method
WdfUsbTargetDeviceCreateUrb method
WdfUsbTargetDeviceCreateWithParameters method
WdfUsbTargetDeviceQueryUsbCapability method
TOC
折叠目录
展开目录

WDF_USB_CONTINUOUS_READER_CONFIG_INIT 函数

The WDF_USB_CONTINUOUS_READER_CONFIG_INIT function initializes a WDF_USB_CONTINUOUS_READER_CONFIG structure.

语法

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
);

参数

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.

返回值

None

评论

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.

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfusb.h (包括Wdfusb.h)

另请参见

EvtUsbTargetPipeReadComplete
WDF_USB_CONTINUOUS_READER_CONFIG

 

 

社区附加资源

添加
显示:
© 2016 Microsoft