Partager via


NdisChainBufferAtFront 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.

NdisChainBufferAtFront links a given buffer descriptor to the head of the buffer-descriptor chain attached to a packet descriptor.

Syntax

VOID NdisChainBufferAtFront(
  _Inout_ PNDIS_PACKET Packet,
  _Inout_ PNDIS_BUFFER Buffer
);

Parameters

  • Packet [in, out]
    Pointer to the packet descriptor.

  • Buffer [in, out]
    Pointer to the caller-supplied buffer descriptor to be added to the chain.

Return value

None

Remarks

NdisChainBufferAtFront links the given buffer descriptor at the head of the chain for 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

Desktop

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)

IRQL

Any level (but typically run at IRQL <= DISPATCH_LEVEL)

See also

NdisChainBufferAtBack

NdisQueryPacket

NdisUnchainBufferAtFront

 

 

Send comments about this topic to Microsoft