Platform SDK: Network Management |
The network management ApiBuffer functions are used to manage memory allocation. However, in general, you should use the memory management functions provided by the Win32 API.
The ApiBuffer functions are listed following.
Function | Description |
---|---|
NetApiBufferAllocate | Allocates memory from the heap. Call this function when you require compatibility with the NetApiBufferFree function. |
NetApiBufferFree | Frees memory allocated by the NetApiBufferAllocate function and other network management functions. |
NetApiBufferReallocate | Changes the size of a buffer allocated by a call to the NetApiBufferAllocate function. |
NetApiBufferSize | Returns the size, in bytes, of a buffer allocated by a call to the NetApiBufferAllocate function. |
Windows NT/2000: For remotable functions that return information to the caller, the RPC run-time library allocates the buffer containing the return information. When the caller has finished processing the information, it must call the NetApiBufferFree function to free the allocated buffer.