NdisUnchainBufferAtFront

VOID
   NdisUnchainBufferAtFront(

       IN OUT PNDIS_PACKET Packet,
       OUT PNDIS_BUFFER *Buffer
       );

NdisUnchainBufferAtFront removes the buffer descriptor at the head of the chain of buffer descriptors for a given packet.

Parameters

Packet

Points to the packet descriptor.

Buffer

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

Comments

NdisUnchainBufferAtFront returns a pointer to the buffer descriptor it removed from the buffer descriptor chain of the given packet.

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

Callers of NdisUnchainBufferAtFront can run at any IRQL.

See Also

NdisChainBufferAtFront, NdisQueryPacket, NdisUnchainBufferAtBack