Export (0) Print
Expand All

SnmpUtilOidCpy 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 SnmpUtilOidCpy function copies the variable pointed to by the pOidSrc parameter to the pOidDst parameter, allocating any necessary memory for the destination's copy. This function is an element of the SNMP Utility API.

Syntax


SNMPAPI SnmpUtilOidCpy(
  _Out_  AsnObjectIdentifier *pOidDst,
  _In_   AsnObjectIdentifier *pOidSrc
);

Parameters

pOidDst [out]

Pointer to an AsnObjectIdentifier structure to receive the copy.

pOidSrc [in]

Pointer to an AsnObjectIdentifier 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 SnmpUtilOidFree function to free memory that the SnmpUtilOidCpy 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
SnmpUtilOidFree

 

 

Community Additions

ADD
Show:
© 2014 Microsoft