---
title: AddDevice
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideobox/adddevice
---

# AddDevice

Adds a video device to the video box.

## Declaration

```occ
kern_return_t AddDevice(IOUserVideoDevice *in_device);
```

## Parameters

- `in_device`: IOUserVideoDevice associated with the box.

## Return Value

Return Value kIOReturnSuccess if device was successfully added.

## Discussion

Discussion The box doesn’t own the device. The device’s reference count will be incremented if it was successfully added.

## See Also

### Managing box contents

- [RemoveDevice](videodriverkit/iouservideobox/removedevice.md)
- [IOUserVideoDevice](videodriverkit/iouservideodevice.md)
- [AddClockDevice](videodriverkit/iouservideobox/addclockdevice.md)
- [RemoveClockDevice](videodriverkit/iouservideobox/removeclockdevice.md)
- [IOUserVideoClockDevice](videodriverkit/iouservideoclockdevice.md)
