NdisUnchainBufferAtFront

This function removes the buffer descriptor at the head of the chain of buffer descriptors for a specified packet.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisUnchainBufferAtFront( IN OUT PNDIS_PACKET Packet,
OUT PNDIS_BUFFER *
Buffer );

Parameters

Packet
Pointer to the packet descriptor.
Buffer
Pointer to a caller-supplied variable in which this function returns a pointer to the removed buffer descriptor. If no buffer is chained to the specified packet, this variable is set to NULL.

Remarks

This function returns a pointer to the buffer descriptor that it removed from the buffer descriptor chain of the specified packet.

It also resets the valid counts for the packet to FALSE, thus forcing the NdisQueryPacket function to recalculate information about the given packet if it is called subsequently with that packet.

A driver that calls this function can run at any IRQL.

See Also

NdisChainBufferAtFront, NdisQueryPacket, NdisUnchainBufferAtBack