USBC_START_DEVICE_CALLBACK callback function

The USBC_START_DEVICE_CALLBACK routine allows a USB client driver to provide a custom definition of the interface collections on a device.

Syntax

USBC_START_DEVICE_CALLBACK UsbcStartDeviceCallback;

NTSTATUS UsbcStartDeviceCallback(
  PUSB_DEVICE_DESCRIPTOR DeviceDescriptor,
  PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
  PUSBC_FUNCTION_DESCRIPTOR *FunctionDescriptorBuffer,
  PULONG FunctionDescriptorBufferLength,
  PDEVICE_OBJECT FdoDeviceObject,
  PDEVICE_OBJECT PdoDeviceObject
)
{...}

Parameters

DeviceDescriptor

The device descriptor of the device.

ConfigurationDescriptor

The configuration of the device.

*FunctionDescriptorBuffer

Pointer to a buffer that contains an array of function descriptors (USBC_FUNCTION_DESCRIPTOR).

FunctionDescriptorBufferLength

The length in bytes of the buffer that FunctionDescriptorBuffer points to.

FdoDeviceObject

The function device object for the device.

PdoDeviceObject

The physical device object for the device.

Return Value

If the operation succeeds, the vendor-supplied callback routine must return STATUS_SUCCESS.

Remarks

For a general description of the callback routine mechanism, see Customizing Enumeration of Interface Collections for Composite Devices.

Requirements

   
Target Platform Desktop
Header usbbusif.h (include Usbbusif.h)

See Also

USBC_DEVICE_CONFIGURATION_INTERFACE_V1