Platform SDK: Network Management

SnmpUtilAsnAnyCpy

The SnmpUtilAsnAnyCpy function copies the variable pointed to by the pAnySrc parameter to the pAnyDst parameter. The function allocates any necessary memory for the destination's copy. The SnmpUtilAsnAnyCpy function is an element of the SNMP Utility API.

SNMPAPI SnmpUtilAsnAnyCpy(
  AsnAny *pAnyDst,  // destination structure
  AsnAny *pAnySrc   // source structure
);

Parameters

pAnyDst
Pointer to an AsnAny structure to receive the copy.
pAnySrc
Pointer to an AsnAny 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 SnmpUtilAsnAnyFree function to free the memory that the SnmpUtilAsnAnyCpy function allocates for the destination structure.

Requirements

  Windows NT/2000: Requires Windows 2000.
  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, AsnAny, SnmpUtilAsnAnyFree