NdisCreateLookaheadBufferFromSharedMemory (Windows CE 5.0)

Send Feedback

This function returns the virtual address of a buffer within a block of memory shared with a bus master DMA NIC.

VOID teLookaheadBufferFromSharedMemory(PVOIDpSharedMemory,UINTLookaheadLength,PVOID* pLookaheadBuffer);

Parameters

  • pSharedMemory
    [in] Specifies the base address of the shared memory range containing the data for the look-ahead buffer.
  • LookaheadLength
    [in] Specifies the length in bytes for the lookahead buffer.
  • pLookaheadBuffer
    [out] Points to a caller-supplied variable in which this function returns the virtual address of the lookahead buffer.

Return Values

None.

Remarks

NdisCreateLookaheadBufferFromSharedMemory provides a lookahead buffer that is a virtual memory copy of shared memory for miniport receive indications. To bound protocol drivers, such a lookahead buffer represents a read-only version of the shared memory.

This function accommodates system architectures that do not allow the NIC driver to read shared memory on a network interface card directly.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndis.lib

See Also

NdisDestroyLookaheadBufferFromSharedMemory | NdisMEthIndicateReceive | NdisMTrIndicateReceive | NdisMWanIndicateReceive

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.