---
title: IOUSBGetNextAssociatedDescriptor
framework: usbdriverkit
role: symbol
role_heading: Function
path: usbdriverkit/iousbgetnextassociateddescriptor
---

# IOUSBGetNextAssociatedDescriptor

Gets the next descriptor in the specified configuration descriptor that belongs to another container descriptor.

## Declaration

```occ
const IOUSBDescriptorHeader *IOUSBGetNextAssociatedDescriptor(const IOUSBConfigurationDescriptor *configurationDescriptor, const IOUSBDescriptorHeader *parentDescriptor, const IOUSBDescriptorHeader *currentDescriptor);
```

## Parameters

- `configurationDescriptor`: A configuration descriptor that contains the descriptors to iterate through.
- `parentDescriptor`: A descriptor pointer within the bounds of the configuration descriptor.
- `currentDescriptor`: A descriptor pointer within the bounds of the configuration descriptor, or NULL.

## Return Value

Return Value A descriptor pointer, or NULL if no descriptor can be returned.

## Discussion

Discussion This method uses getNextDescriptor, but returns NULL if it finds another descriptor whose descriptor type field matches the value used for the parent descriptor’s type. Using NULL for the current descriptor returns the first descriptor after the parent descriptor.

## See Also

### Configuration Descriptors

- [IOUSBGetNextDescriptor](usbdriverkit/iousbgetnextdescriptor.md)
- [IOUSBGetNextDescriptorWithType](usbdriverkit/iousbgetnextdescriptorwithtype.md)
- [IOUSBGetNextAssociatedDescriptorWithType](usbdriverkit/iousbgetnextassociateddescriptorwithtype.md)
- [IOUSBGetConfigurationMaxPowerMilliAmps](usbdriverkit/iousbgetconfigurationmaxpowermilliamps.md)
