---
title: GetDescriptors
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostpipe/getdescriptors
---

# GetDescriptors

Retrieves the endpoint descriptors associated with this pipe.

## Declaration

```occ
virtual kern_return_t GetDescriptors(IOUSBStandardEndpointDescriptors *descriptors, IOUSBGetEndpointDescriptorOptions type);
```

## Parameters

- `descriptors`: A pointer to a variable. On output, this variable contains the endpoint descriptors for the pipe.
- `type`: The options indicating which descriptors to retrieve. For a list of possible values, see doc://com.apple.usbdriverkit/documentation/USBDriverKit/IOUSBGetEndpointDescriptorOptions.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## See Also

### Getting the Endpoint Descriptors

- [IOUSBStandardEndpointDescriptors](usbdriverkit/iousbstandardendpointdescriptors.md)
- [IOUSBGetEndpointDescriptorOptions](usbdriverkit/iousbgetendpointdescriptoroptions.md)
