Platform SDK: Network Management |
The SnmpUtilOidCpy function copies the variable pointed to by the pOidSrc parameter to the pOidDst parameter, allocating any necessary memory for the destination's copy. This function is an element of the SNMP Utility API.
SNMPAPI SnmpUtilOidCpy( 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.
Call the SnmpUtilOidFree function to free memory that the SnmpUtilOidCpy function allocates for the destination structure.
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, SnmpUtilOidFree