Platform SDK: Network Management |
The NetApiBufferFree function frees the memory that the NetApiBufferAllocate function allocates. Call NetApiBufferFree to free the memory that other network management functions return on Windows NT/Windows 2000.
NET_API_STATUS NetApiBufferFree( LPVOID Buffer );
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value is a Win32 API error code. For a list of error codes, see Error Codes.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Unsupported.
Header: Declared in Lmapibuf.h; include Lm.h.
Library: Use Netapi32.lib.
Network Management Overview, Network Management Functions, Api Buffer Functions, NetApiBufferAllocate, NetApiBufferReallocate