---
title: AddControl
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideoclockdevice/addcontrol
---

# AddControl

Adds a video control to the video clock device.

## Declaration

```occ
kern_return_t AddControl(IOUserVideoControl *in_control);
```

## Parameters

- `in_control`: IOUserVideoControl to add to the clock device.

## Return Value

Return Value kIOReturnSuccess if control was successfully added.

## Discussion

Discussion The control’s reference count will be incremented if it was successfully added to the clock device.

## See Also

### Managing video controls

- [RemoveControl](videodriverkit/iouservideoclockdevice/removecontrol.md)
- [IOUserVideoControl](videodriverkit/iouservideocontrol.md)
