SnmpUtilOidAppend (Windows CE 5.0)
This function appends the source object identifier to the destination object identifier.
SNMPAPI SnmpUtilOidAppend(AsnObjectIdentifier* pOidDst, AsnObjectIdentifier* pOidSrc);
- pOidDst
[in, out] Pointer to an AsnObjectIdentifier structure to receive the source structure. - pOidSrc
[in] Pointer to an AsnObjectIdentifier structure to append.
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.
Value | 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.
OS Versions: Windows CE 3.0 and later.
Header: Snmp.h.
Link Library: Snmpapi.lib.
SnmpUtilMemReAlloc | SnmpUtilOidFree
Send Feedback on this topic to the authors