WDF_USB_DEVICE_CREATE_CONFIG_INIT function

[Applies to KMDF and UMDF]

The WDF_USB_DEVICE_CREATE_CONFIG_INIT function initializes a WDF_USB_DEVICE_CREATE_CONFIG structure.

Syntax

void WDF_USB_DEVICE_CREATE_CONFIG_INIT(
  PWDF_USB_DEVICE_CREATE_CONFIG Config,
  ULONG                         USBDClientContractVersion
);

Parameters

Config

A pointer to a WDF_USB_DEVICE_CREATE_CONFIG structure.

USBDClientContractVersion

The contract version that the client driver supports. USBDClientContractVersion must be USBD_CLIENT_CONTRACT_VERSION_602.

Return Value

This function does not return a value.

Remarks

The WDF_USB_DEVICE_CREATE_CONFIG_INIT function zeros the specified WDF_USB_DEVICE_CREATE_CONFIG structure and sets the Size member to the size of the structure. It also sets the structure's USBDClientContractVersion member to the specified value.

For a code example that uses WDF_USB_DEVICE_CREATE_CONFIG_INIT, see WdfUsbTargetDeviceCreateWithParameters.

Requirements

   
Windows version Windows Vista
Target Platform Universal
Minimum KMDF version 1.11
Minimum UMDF version 2.0
Header wdfusb.h (include Wdfusb.h)

See Also

WDF_USB_DEVICE_CREATE_CONFIG

WdfUsbTargetDeviceCreateWithParameters