// usbbusif.h
USBC_START_DEVICE_CALLBACK UsbcStartDeviceCallback;
NTSTATUS UsbcStartDeviceCallback(
[in] PUSB_DEVICE_DESCRIPTOR DeviceDescriptor,
[in] PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
[out] PUSBC_FUNCTION_DESCRIPTOR *FunctionDescriptorBuffer,
[out] PULONG FunctionDescriptorBufferLength,
[in] PDEVICE_OBJECT FdoDeviceObject,
[in] PDEVICE_OBJECT PdoDeviceObject
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The USBC_START_DEVICE_CALLBACK routine allows a USB client driver to provide a custom definition of the interface collections on a device.
DeviceDescriptor [in]The device descriptor of the device.
ConfigurationDescriptor [in]The configuration of the device.
FunctionDescriptorBuffer [out]Pointer to a buffer that contains an array of function descriptors (USBC_FUNCTION_DESCRIPTOR).
FunctionDescriptorBufferLength [out]The length in bytes of the buffer that FunctionDescriptorBuffer points to.
FdoDeviceObject [in]The function device object for the device.
PdoDeviceObject [in]The physical device object for the device.
If the operation succeeds, the vendor-supplied callback routine must return STATUS_SUCCESS.
For a general description of the callback routine mechanism, see Customizing Enumeration of Interface Collections for Composite Devices.
USBC_DEVICE_CONFIGURATION_INTERFACE_V1