This topic has not yet been rated - Rate this topic

SnmpUtilOctetsCpy function

[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 SnmpUtilOctetsCpy function copies the variable pointed to by the pOctetsSrc parameter to the variable pointed to by the pOctetsDst parameter. The function allocates any necessary memory for the destination's copy. The SnmpUtilOctetsCpy function is an element of the SNMP Utility API.

Syntax


SNMPAPI SnmpUtilOctetsCpy(
  _Out_  AsnOctetString *pOctetsDst,
  _In_   AsnOctetString *pOctetsSrc
);

Parameters

pOctetsDst [out]

Pointer to an AsnOctetString structure to receive the copy.

pOctetsSrc [in]

Pointer to an AsnOctetString 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 SnmpUtilOctetsFree function to free the memory that the SnmpUtilOctetsCpy function allocates for the destination structure.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Snmp.h

Library

Snmpapi.lib

DLL

Snmpapi.dll

See also

Simple Network Management Protocol (SNMP) Overview
SNMP Functions
AsnOctetString
SnmpUtilOctetsFree

 

 

Send comments about this topic to Microsoft

Build date: 10/30/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.