原文来自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

3822

被折叠的 条评论
为什么被折叠?



