Two primitives are provided for use by Windows agents to allocate and free memory:
void *VCSAgAllocMem (size_t size)
This primitive can be used to allocate "size
" bytes of memory. The primitive VCSAgDeleteMem
must be used to free the memory that is allocated using this API.
void VCSAgDeleteMem (void *mp)
This primitive can be used to free memory allocated to "mp
." The memory for "mp
" should have been allocated in a previous call to the API VCSAgAllocMem
.