Platform SDK: Network Management

SnmpUtilMemReAlloc

The SnmpUtilMemReAlloc function changes the size of the specified memory object. This function is an element of the SNMP Utility API.

LPVOID SnmpUtilMemReAlloc(
  LPVOID pMem,  // pointer to memory object
  UINT nBytes   // bytes to allocate
);

Parameters

pMem
[in] Pointer to the memory object to resize.
nBytes
[in] Specifies the number of bytes to allocate for the new 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

Call the SnmpUtilMemFree function to release memory that the SnmpUtilMemReAlloc function allocates.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Snmp.h.
  Library: Use Snmpapi.lib.

See Also

Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpUtilMemAlloc, SnmpUtilMemFree