---
title: SetCurrentSelectedValues
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideoselectorcontrol/setcurrentselectedvalues
---

# SetCurrentSelectedValues

Sets the current control value.

## Declaration

```occ
kern_return_t SetCurrentSelectedValues(const IOUserVideoSelectorValue *in_values, size_t in_num_values);
```

## Parameters

- `in_values`: Pointer to an array of IOUserVideoSelectorValues
- `in_num_values`: Number of IOUserVideoSelectorValues in in_values

## Discussion

Discussion Changing the control value will send a notification to the host to update the object state if successful. The object’s work queue synchronizes access to the value.

## See Also

### Accessing the value

- [GetCurrentSelectedValues](videodriverkit/iouservideoselectorcontrol/getcurrentselectedvalues.md)
- [IOUserVideoSelectorValue](videodriverkit/iouservideoselectorvalue.md)
- [GetControlValuesCount](videodriverkit/iouservideoselectorcontrol/getcontrolvaluescount.md)
- [AddControlValueDescriptions](videodriverkit/iouservideoselectorcontrol/addcontrolvaluedescriptions.md)
- [RemoveControlValueDescriptions](videodriverkit/iouservideoselectorcontrol/removecontrolvaluedescriptions.md)
- [GetControlValueDescriptions](videodriverkit/iouservideoselectorcontrol/getcontrolvaluedescriptions.md)
- [IOUserVideoSelectorValueDescription](videodriverkit/iouservideoselectorvaluedescription.md)
