USBC_START_DEVICE_CALLBACK function pointer
The USBC_START_DEVICE_CALLBACK routine allows a USB client driver to provide a custom definition of the interface collections on a device.
Syntax
typedef NTSTATUS ( USB_BUSIFFN *USBC_START_DEVICE_CALLBACK)(
_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
);
Parameters
- 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.
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
Header |
|
---|
See also
Send comments about this topic to Microsoft
Build date: 12/5/2013