NetApiBufferAllocate  LJWP_S 

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

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