Share via


NdisGetNextBuffer (Windows Embedded CE 6.0)

1/6/2010

This function returns the next buffer descriptor in a chain, provided it has a pointer to the current buffer descriptor.

Syntax

VOID NdisGetNextBuffer(
  PNDIS_BUFFER CurrentBuffer,
  PNDIS_BUFFER* NextBuffer
);

Parameters

  • CurrentBuffer
    [in] Pointer to the current buffer descriptor.
  • NextBuffer
    [out] Pointer to a caller-supplied variable in which this function returns a pointer to the buffer descriptor, if any, that follows CurrentBuffer in the buffer descriptor chain.

Return Value

None.

Remarks

This function returns NULL at NextBuffer if CurrentBuffer points to the last buffer descriptor in the chain.

A driver usually calls this function after it calls the NdisQueryPacket or the NdisGetFirstBufferFromPacket function.

A driver can also call the NdisQueryBuffer function to get details about a buffer descriptor that this function finds.

This function does not perform any synchronization. Therefore, a caller must handle any synchronization issues internally if more than one driver function can access buffer descriptors chained to a packet simultaneously.

Requirements

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisGetFirstBufferFromPacket
NdisQueryBuffer
NdisQueryPacket