SNMP--Windows API--SnmpUtilOidAppend

原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com

 

SnmpUtilOidAppend Function

The SnmpUtilOidAppend function appends the source object identifier to the destination object identifier.
这个SnmpUtilOidAppend函数附加源对象标识符到目标对象标识符。
This function is an element of the SNMP Utility API.
这个函数是SNMP实用程序API中的一个元素。

Syntax
SNMPAPI SnmpUtilOidAppend(
__inout  AsnObjectIdentifier* pOidDst,
__in     AsnObjectIdentifier* pOidSrc
);

Parameters
pOidDst
Pointer to an AsnObjectIdentifier structure to receive the source structure.
指针指向AsnObjectIdentifier结构体去接收源对象。
pOidSrc
Pointer to an AsnObjectIdentifier structure to append.
指针指向AsnObjectIdentifier结构体去附加。
Return Value
If the function succeeds, the return value is nonzero.
如果函数成功,返回值是非零。
If the function fails, the return value is zero.
如果函数失败,返回值是零。
This function does not generate Windows Sockets errors.
这个函数不会生成Windows Sockets错误。
The application should call the GetLastError function.
这个应用程序应该调用GetLastError函数。
GetLastError may return the following error codes.
GetLastError可能返回以下错误代码。
Return code Description
SNMP_BERAPI_OVERFLOW
 Indicates an overflow condition
 指示一个溢出情况。
SNMP_MEM_ALLOC_ERROR
 Indicates a memory allocation error
 指示一个内存申请错误。

Remarks
The SnmpUtilOidAppend function calls the SnmpUtilMemReAlloc function.
这个SnmpUtilOidAppend函数调用SnmpUtilMemReAlloc函数。
The SnmpUtilMemReAlloc function expands the buffer for the destination object identifier.
这个SnmpUtilMemReAlloc函数为目标对象标识符扩展缓冲区。
Call the SnmpUtilOidFree function to free memory that the SnmpUtilOidAppend function allocates for the destination.
调用 SnmpUtilOidFree 函数去释放 SnmpUtilOidAppend 函数为目标申请的内存。
Requirements
Client Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Server Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header Declared in Snmp.h.
 
Library Use Snmpapi.lib.
 
DLL Requires Snmpapi.dll.
 

See Also
Simple Network Management Protocol (SNMP) Overview
SNMP Functions
SnmpUtilMemReAlloc
SnmpUtilOidFree

 

Send comments about this topic to Microsoft

Build date: 3/8/2008

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值