NdisCreateLookaheadBufferFromSharedMemory

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

VOID teLookaheadBufferFromSharedMemory(
  PVOID pSharedMemory,
  UINT LookaheadLength,
  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.

See Also

NdisDestroyLookaheadBufferFromSharedMemory | NdisMEthIndicateReceive | NdisMTrIndicateReceive | NdisMWanIndicateReceive

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.