This function releases a handle obtained in a preceding call to the NdisAllocateBufferPool function.

VOID NdisFreeBufferPool(
  NDIS_HANDLE PoolHandle


  • PoolHandle
    [in] Handle returned when the driver called the NdisAllocateBufferPool function. The pool handle is no longer valid after this function returns.

Return Values



Before calling this function, the driver must call the NdisFreeBuffer function as many times as necessary to release all buffer descriptors that were allocated with the NdisAllocateBuffer function but not yet released. Otherwise, the call to this function causes a memory leak.

The driver must release any spin lock that it is holding before calling this function.


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

See Also

NdisAllocateBuffer | NdisAllocateBufferPool | NdisFreeBuffer | NdisReleaseSpinLock

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.