The SnmpUtilVarBindCpy function copies the specified SnmpVarBind structure, and allocates any memory necessary for the destination structure. The SnmpUtilVarBindCpy function is an element of the SNMP Utility API.
SNMPAPI SnmpUtilVarBindCpy(
SnmpVarBind *pVbDst, // destination variable bindings
SnmpVarBind *pVbSrc // source variable bindings
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Call the SnmpUtilVarBindFree function to free memory that the SnmpUtilVarBindCpy function allocates for the destination structure.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in snmp.h.
Import Library: Use snmpapi.lib.
Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpVarBind, SnmpUtilVarBindFree