Platform SDK: Network Management |
The SnmpUtilOidAppend function appends the source object identifier to the destination object identifier. This function is an element of the SNMP Utility API.
SNMPAPI SnmpUtilOidAppend( AsnObjectIdentifier *pOidDst, // destination object identifier AsnObjectIdentifier *pOidSrc // source object identifier );
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 |
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.
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.
Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpUtilMemReAlloc, SnmpUtilOidFree