---
title: CopyDataQueue
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketqueue/copydataqueue
---

# CopyDataQueue

Returns the dispatch queue that this object uses to execute tasks.

## Declaration

```occ
virtual kern_return_t CopyDataQueue(IODataQueueDispatchSource **dataQueue);
```

## Parameters

- `dataQueue`: On return, a pointer to the dispatch source that this object uses to generate tasks.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurred.

## See Also

### Managing the Data Queue

- [SetDataQueue](networkingdriverkit/iousernetworkpacketqueue/setdataqueue.md)
