---
title: SelectAlternateSetting
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostinterface/selectalternatesetting
---

# SelectAlternateSetting

Selects an alternative setting for this interface.

## Declaration

```occ
virtual kern_return_t SelectAlternateSetting(uint8_t bAlternateSetting);
```

## Parameters

- `bAlternateSetting`: The alternative interface number to activate.

## Return Value

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

## Discussion

Discussion Use this method to select an alternative setting for the interface. The system aborts all pending I/O on the interface’s pipes, and closes any open pipes. The system selects the new alternative setting using the SET_INTERFACE control request (USB 2.0, section 9.4.10).

## See Also

### Configuring the Interface

- [GetFrameNumber](usbdriverkit/iousbhostinterface/getframenumber.md)
- [GetPortStatus](usbdriverkit/iousbhostinterface/getportstatus.md)
- [GetIdlePolicy](usbdriverkit/iousbhostinterface/getidlepolicy.md)
- [SetIdlePolicy](usbdriverkit/iousbhostinterface/setidlepolicy.md)
- [tIOUSBHostPortStatus](usbdriverkit/tiousbhostportstatus.md)
