WDF_USB_DEVICE_CREATE_CONFIG_INIT function (wdfusb.h)

[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(
  [out] PWDF_USB_DEVICE_CREATE_CONFIG Config,
  [in]  ULONG                         USBDClientContractVersion
);

Parameters

[out] Config

A pointer to a WDF_USB_DEVICE_CREATE_CONFIG structure.

[in] USBDClientContractVersion

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

Return value

None

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

Requirement Value
Minimum supported client 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