The SnmpUtilMemAlloc function allocates dynamic memory from the process heap.
LPVOID SnmpUtilMemAlloc(
UINT Size |
// bytes to allocate |
); |
If the function succeeds, the return value is a pointer to the newly allocated memory object.
If the function fails, the return value is NULL.
Use the SnmpUtilMemFree function to release memory that the SnmpUtilMemAlloc function allocates.