NdisUnchainBufferAtFront function
Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
NdisUnchainBufferAtFront removes the buffer descriptor at the head of the chain of buffer descriptors for a given packet.
Syntax
VOID NdisUnchainBufferAtFront(
_Inout_ PNDIS_PACKET Packet,
_Out_ PNDIS_BUFFER *Buffer
);
Parameters
Packet [in, out]
Pointer to the packet descriptor.Buffer [out]
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 given packet, this variable is set to NULL.
Return value
None
Remarks
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.
Requirements
Target platform |
Universal |
Version |
Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP. |
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
Any level |
See also