The NetApiBufferFree function frees the memory that NetApiBufferAllocate allocates. Use this function to free the memory that other Net functions return.
NET_API_STATUS NetApiBufferFree(
LPVOID Buffer
);
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmapibuf.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetApiBufferAllocate, NetApiBufferReallocate