Platform SDK: Network Management

SnmpUtilVarBindListCpy

The SnmpUtilVarBindListCpy function copies the specified SnmpVarBindList structure, and allocates any necessary memory for the destination's copy. This function is an element of the SNMP Utility API.

SNMPAPI SnmpUtilVarBindListCpy(
  SnmpVarBindList *pVblDst,  // destination variable bindings list
  SnmpVarBindList *pVblSrc   // source variable bindings list
);

Parameters

pVblDst
[out] Pointer to an SnmpVarBindList structure to receive the copy.
pVblSrc
[in] Pointer to an SnmpVarBindList structure to copy.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

Call the SnmpUtilVarBindListFree function to free memory that the SnmpUtilVarBindListCpy function allocates for the destination structure.

Requirements

  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.

See Also

Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpVarBindList, SnmpUtilVarBindListFree, SnmpUtilOidCpy