Share via


SnmpUtilMemReAlloc

The SnmpUtilMemReAlloc function changes the size of the specified memory object.

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 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

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

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 and later Snmp.h   Snmpapi.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

SnmpUtilMemFree

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.