ApiBuffer Functions

For remotable functions that return information to the caller, the RPC run time allocates the buffer containing the return information. The ApiBuffer functions are used to manipulate the buffer. The buffer manipulation functions are:

NetApiBufferAllocate
NetApiBufferFree
NetApiBufferReallocate
NetApiBufferSize

When the caller has finished processing the returned information, it must call the NetApiBufferFree function to free the allocated buffer.