SnmpUtilMemAlloc 

The SnmpUtilMemAlloc function allocates dynamic memory from the process heap.

LPVOID SnmpUtilMemAlloc(

    UINT Size

// bytes to allocate

   );

 

 

Parameters

Size

[in] The number of bytes to allocate for the memory object.

 

Return Values

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.

Remarks

Use the SnmpUtilMemFree function to release memory that the SnmpUtilMemAlloc function allocates.

See Also

SnmpUtilMemFree, SnmpUtilMemReAlloc