Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Other versions of this page are also available for the following:
Windows Mobile Not Supported Windows Embedded CE Supported
8/28/2008

This function changes the size of the specified memory object.

Syntax


LPVOID SnmpUtilMemReAlloc(
  LPVOID 
pmem
, 
  UINT 
nBytes 

);

Parameters

pmem

[in] Pointer to the memory object to resize.

nBytes

[in] Specifies the number of bytes to allocate for the new memory object. A zero-value releases memory previously allocated for the object.

Return Value

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

To release previously allocated memory for a specific argument, you can also call the SnmpUtilMemFreefunction

Requirements

Header snmp.h
Library snmpapi.lib
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

SnmpUtilMemFree