SnmpUtilAsnAnyCpy function (snmp.h)
[SNMP is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Windows Remote Management, which is the Microsoft implementation of WS-Man.]
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.
Syntax
SNMPAPI SNMP_FUNC_TYPE SnmpUtilAsnAnyCpy(
[out] AsnAny *pAnyDst,
[in] AsnAny *pAnySrc
);
Parameters
[out] pAnyDst
Pointer to an AsnAny structure to receive the copy.
[in] pAnySrc
Pointer to an AsnAny structure to copy.
Return value
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | snmp.h |
Library | Snmpapi.lib |
DLL | Snmpapi.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for