SnmpUtilOidAppend

The SnmpUtilOidAppend function appends the source object identifier to the destination object identifier.

SNMPAPI SnmpUtilOidAppend(
AsnObjectIdentifier *pOidDst, 
AsnObjectIdentifier *pOidSrc);

Parameters

  • pOidDst
    [in/out] Pointer to an AsnObjectIdentifier structure to receive the source structure.
  • pOidSrc
    [in] Pointer to an AsnObjectIdentifier structure to append.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. This function does not generate Windows Sockets errors. The application should call the GetLastError function. GetLastError may return the following error codes.

Error Code Description
SNMP_BERAPI_OVERFLOW Indicates an overflow condition.
SNMP_MEM_ALLOC_ERROR Indicates a memory allocation error.

Remarks

The SnmpUtilOidAppend function calls the SnmpUtilMemReAlloc

function. The SnmpUtilMemReAlloc function expands the buffer for the destination object identifier.

Call the SnmpUtilOidFree

function to free memory that the SnmpUtilOidAppend function allocates for the destination.

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

SnmpUtilMemReAlloc, SnmpUtilOidFree

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.