NetApiBufferAllocate

The NetApiBufferAllocate function allocates memory from the heap. Use this function only when compatibility with the NetApiBufferFree function is required. Otherwise, use LocalAlloc.

NET_API_STATUS NetApiBufferAllocate(

DWORD ByteCount,  
LPVOID *Buffer  
);  

Parameters

ByteCount

The number of bytes to allocate.

buffer

Pointer to the location at which to store the pointer to the allocated buffer.

See Also

NetApiBufferReallocate