---
title: DequeuePackets
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketqueue/dequeuepackets
---

# DequeuePackets

Retrieves multiple network packets from the queue.

## Declaration

```occ
virtual uint32_t DequeuePackets(IOUserNetworkPacket **packets, uint32_t maxDequeueCount);
```

## Parameters

- `packets`: On return, an array containing the next available packets.
- `maxDequeueCount`: The number of packets you want to dequeue.

## Return Value

Return Value The actual number of packets returned in the packets parameter.

## Discussion

Discussion Call this method to retrieve multiple packets from the submission queue. This method returns as many packets as are available, up to the maximum number you specify.

## See Also

### Queueing and Dequeueing Packets

- [EnqueuePacket](networkingdriverkit/iousernetworkpacketqueue/enqueuepacket.md)
- [EnqueuePackets](networkingdriverkit/iousernetworkpacketqueue/enqueuepackets-qzx.md)
- [DequeuePacket](networkingdriverkit/iousernetworkpacketqueue/dequeuepacket.md)
