谁可以给我一个snmp.h文件。(30分)

  • 主题发起人 主题发起人 pglwh
  • 开始时间 开始时间
/*++<br><br>Copyright 1992 - 1998 Microsoft Corporation<br><br>Module Name:<br><br>&nbsp; &nbsp; snmp.h<br><br>Abstract:<br><br>&nbsp; &nbsp; Definitions for SNMP development.<br><br>--*/<br><br>#ifndef _INC_SNMP<br>#define _INC_SNMP<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// Additional Header Files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#include &lt;windows.h&gt;<br><br>#ifdef __cplusplus<br>extern "C" {<br>#endif<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Type Definitions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#pragma pack(4)<br><br>typedef struct {<br>&nbsp; &nbsp; BYTE * stream; &nbsp; &nbsp; <br>&nbsp; &nbsp; UINT &nbsp; length; &nbsp; &nbsp; <br>&nbsp; &nbsp; BOOL &nbsp; dynamic; &nbsp; &nbsp;<br>} AsnOctetString;<br><br>typedef struct {<br>&nbsp; &nbsp; UINT &nbsp; idLength; &nbsp; <br>&nbsp; &nbsp; UINT * ids; &nbsp; &nbsp; &nbsp; &nbsp;<br>} AsnObjectIdentifier;<br><br>typedef LONG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnInteger32;<br>typedef ULONG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AsnUnsigned32;<br>typedef ULARGE_INTEGER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnCounter64;<br>typedef AsnUnsigned32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AsnCounter32;<br>typedef AsnUnsigned32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AsnGauge32;<br>typedef AsnUnsigned32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AsnTimeticks;<br>typedef AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnBits;<br>typedef AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnSequence;<br>typedef AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnImplicitSequence;<br>typedef AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnIPAddress;<br>typedef AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnNetworkAddress;<br>typedef AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnDisplayString;<br>typedef AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnOpaque;<br><br>typedef struct {<br>&nbsp; &nbsp; BYTE asnType;<br>&nbsp; &nbsp; union { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; AsnInteger32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;number; &nbsp; &nbsp; // ASN_INTEGER<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // ASN_INTEGER32<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnUnsigned32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unsigned32; // ASN_UNSIGNED32<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnCounter64 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;counter64; &nbsp;// ASN_COUNTER64<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnOctetString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string; &nbsp; &nbsp; // ASN_OCTETSTRING<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnBits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bits; &nbsp; &nbsp; &nbsp; // ASN_BITS<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnObjectIdentifier &nbsp; &nbsp; object; &nbsp; &nbsp; // ASN_OBJECTIDENTIFIER<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnSequence &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sequence; &nbsp; // ASN_SEQUENCE<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnIPAddress &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;address; &nbsp; &nbsp;// ASN_IPADDRESS<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnCounter32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;counter; &nbsp; &nbsp;// ASN_COUNTER32<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnGauge32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gauge; &nbsp; &nbsp; &nbsp;// ASN_GAUGE32<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnTimeticks &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ticks; &nbsp; &nbsp; &nbsp;// ASN_TIMETICKS<br>&nbsp; &nbsp; &nbsp; &nbsp; AsnOpaque &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arbitrary; &nbsp;// ASN_OPAQUE<br>&nbsp; &nbsp; } asnValue;<br>} AsnAny;<br><br>typedef AsnObjectIdentifier &nbsp; &nbsp; AsnObjectName;<br>typedef AsnAny &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnObjectSyntax;<br><br>typedef struct {<br>&nbsp; &nbsp; AsnObjectName &nbsp; &nbsp;name; &nbsp; &nbsp; <br>&nbsp; &nbsp; AsnObjectSyntax &nbsp;value; &nbsp; &nbsp;<br>} SnmpVarBind;<br><br>typedef struct {<br>&nbsp; &nbsp; SnmpVarBind * list; &nbsp; &nbsp; <br>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;len; &nbsp; &nbsp; &nbsp;<br>} SnmpVarBindList;<br><br>#pragma pack()<br><br>#ifndef _INC_WINSNMP<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// ASN/BER Base Types &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>#define ASN_UNIVERSAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00<br>#define ASN_APPLICATION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x40<br>#define ASN_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x80<br>#define ASN_PRIVATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0xC0<br><br>#define ASN_PRIMITIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00<br>#define ASN_CONSTRUCTOR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x20<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// PDU Type Values &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define SNMP_PDU_GET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)<br>#define SNMP_PDU_GETNEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1)<br>#define SNMP_PDU_RESPONSE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2)<br>#define SNMP_PDU_SET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_CONTEXT | ASN_CONSTRUCTOR | 0x3)<br>#define SNMP_PDU_V1TRAP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4) <br>#define SNMP_PDU_GETBULK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_CONTEXT | ASN_CONSTRUCTOR | 0x5)<br>#define SNMP_PDU_INFORM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x6)<br>#define SNMP_PDU_TRAP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x7)<br><br>#endif // _INC_WINSNMP<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Simple Syntax Values &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define ASN_INTEGER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x02)<br>#define ASN_BITS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_UNIVERSAL | ASN_PRIMITIVE | 0x03)<br>#define ASN_OCTETSTRING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x04)<br>#define ASN_NULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_UNIVERSAL | ASN_PRIMITIVE | 0x05)<br>#define ASN_OBJECTIDENTIFIER &nbsp; &nbsp; &nbsp; &nbsp;(ASN_UNIVERSAL | ASN_PRIMITIVE | 0x06)<br>#define ASN_INTEGER32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ASN_INTEGER<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Constructor Syntax Values &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>#define ASN_SEQUENCE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_UNIVERSAL | ASN_CONSTRUCTOR | 0x10)<br>#define ASN_SEQUENCEOF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ASN_SEQUENCE<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Application Syntax Values &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define ASN_IPADDRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_APPLICATION | ASN_PRIMITIVE | 0x00)<br>#define ASN_COUNTER32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_APPLICATION | ASN_PRIMITIVE | 0x01)<br>#define ASN_GAUGE32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_APPLICATION | ASN_PRIMITIVE | 0x02)<br>#define ASN_TIMETICKS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_APPLICATION | ASN_PRIMITIVE | 0x03)<br>#define ASN_OPAQUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_APPLICATION | ASN_PRIMITIVE | 0x04)<br>#define ASN_COUNTER64 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASN_APPLICATION | ASN_PRIMITIVE | 0x06)<br>#define ASN_UNSIGNED32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ASN_APPLICATION | ASN_PRIMITIVE | 0x07)<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Exception Conditions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>#define SNMP_EXCEPTION_NOSUCHOBJECT &nbsp; &nbsp; (ASN_CONTEXT | ASN_PRIMITIVE | 0x00)<br>#define SNMP_EXCEPTION_NOSUCHINSTANCE &nbsp; (ASN_CONTEXT | ASN_PRIMITIVE | 0x01)<br>#define SNMP_EXCEPTION_ENDOFMIBVIEW &nbsp; &nbsp; (ASN_CONTEXT | ASN_PRIMITIVE | 0x02)<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Request Types (used in SnmpExtensionQueryEx) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>#define SNMP_EXTENSION_GET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SNMP_PDU_GET &nbsp; &nbsp; <br>#define SNMP_EXTENSION_GET_NEXT &nbsp; &nbsp; SNMP_PDU_GETNEXT<br>#define SNMP_EXTENSION_GET_BULK &nbsp; &nbsp; SNMP_PDU_GETBULK<br>#define SNMP_EXTENSION_SET_TEST &nbsp; &nbsp; (ASN_PRIVATE | ASN_CONSTRUCTOR | 0x0)<br>#define SNMP_EXTENSION_SET_COMMIT &nbsp; SNMP_PDU_SET<br>#define SNMP_EXTENSION_SET_UNDO &nbsp; &nbsp; (ASN_PRIVATE | ASN_CONSTRUCTOR | 0x1)<br>#define SNMP_EXTENSION_SET_CLEANUP &nbsp;(ASN_PRIVATE | ASN_CONSTRUCTOR | 0x2)<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Error Codes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define SNMP_ERRORSTATUS_NOERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>#define SNMP_ERRORSTATUS_TOOBIG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br>#define SNMP_ERRORSTATUS_NOSUCHNAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2<br>#define SNMP_ERRORSTATUS_BADVALUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3<br>#define SNMP_ERRORSTATUS_READONLY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4<br>#define SNMP_ERRORSTATUS_GENERR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5<br>#define SNMP_ERRORSTATUS_NOACCESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6<br>#define SNMP_ERRORSTATUS_WRONGTYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7<br>#define SNMP_ERRORSTATUS_WRONGLENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;8<br>#define SNMP_ERRORSTATUS_WRONGENCODING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9<br>#define SNMP_ERRORSTATUS_WRONGVALUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10<br>#define SNMP_ERRORSTATUS_NOCREATION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 11<br>#define SNMP_ERRORSTATUS_INCONSISTENTVALUE &nbsp; &nbsp; &nbsp;12<br>#define SNMP_ERRORSTATUS_RESOURCEUNAVAILABLE &nbsp; &nbsp;13<br>#define SNMP_ERRORSTATUS_COMMITFAILED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14<br>#define SNMP_ERRORSTATUS_UNDOFAILED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 15<br>#define SNMP_ERRORSTATUS_AUTHORIZATIONERROR &nbsp; &nbsp; 16<br>#define SNMP_ERRORSTATUS_NOTWRITABLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;17<br>#define SNMP_ERRORSTATUS_INCONSISTENTNAME &nbsp; &nbsp; &nbsp; 18<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMPv1 Trap Types &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define SNMP_GENERICTRAP_COLDSTART &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;<br>#define SNMP_GENERICTRAP_WARMSTART &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br>#define SNMP_GENERICTRAP_LINKDOWN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2<br>#define SNMP_GENERICTRAP_LINKUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3<br>#define SNMP_GENERICTRAP_AUTHFAILURE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4<br>#define SNMP_GENERICTRAP_EGPNEIGHLOSS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5<br>#define SNMP_GENERICTRAP_ENTERSPECIFIC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Access Types &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define SNMP_ACCESS_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>#define SNMP_ACCESS_NOTIFY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br>#define SNMP_ACCESS_READ_ONLY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2<br>#define SNMP_ACCESS_READ_WRITE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3<br>#define SNMP_ACCESS_READ_CREATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP API Return Code Definitions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define SNMPAPI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INT<br>#define SNMP_FUNC_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WINAPI<br><br>#define SNMPAPI_NOERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TRUE<br>#define SNMPAPI_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FALSE<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Extension API Prototypes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>BOOL <br>SNMP_FUNC_TYPE<br>SnmpExtensionInit(<br>&nbsp; &nbsp; DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dwUptimeReference, &nbsp; &nbsp;<br>&nbsp; &nbsp; HANDLE * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;phSubagentTrapEvent, &nbsp;<br>&nbsp; &nbsp; AsnObjectIdentifier * pFirstSupportedRegion <br>&nbsp; &nbsp; );<br><br>BOOL <br>SNMP_FUNC_TYPE<br>SnmpExtensionInitEx(<br>&nbsp; &nbsp; AsnObjectIdentifier * pNextSupportedRegion<br>&nbsp; &nbsp; );<br><br>BOOL<br>SNMP_FUNC_TYPE<br>SnmpExtensionQuery(<br>&nbsp; &nbsp; BYTE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bPduType, &nbsp; &nbsp;<br>&nbsp; &nbsp; SnmpVarBindList * pVarBindList,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorStatus, <br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorIndex &nbsp;<br>&nbsp; &nbsp; );<br><br>BOOL<br>SNMP_FUNC_TYPE<br>SnmpExtensionQueryEx(<br>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRequestType, &nbsp; <br>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTransactionId,<br>&nbsp; &nbsp; SnmpVarBindList * pVarBindList,<br>&nbsp; &nbsp; AsnOctetString * &nbsp;pContextInfo,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorStatus,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorIndex<br>&nbsp; &nbsp; );<br><br>BOOL <br>SNMP_FUNC_TYPE<br>SnmpExtensionTrap(<br>&nbsp; &nbsp; AsnObjectIdentifier * pEnterpriseOid, &nbsp;<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp; &nbsp; &nbsp;pGenericTrapId, &nbsp;<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp; &nbsp; &nbsp;pSpecificTrapId, <br>&nbsp; &nbsp; AsnTimeticks * &nbsp; &nbsp; &nbsp; &nbsp;pTimeStamp, &nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; SnmpVarBindList * &nbsp; &nbsp; pVarBindList<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpExtensionClose(<br>&nbsp; &nbsp; );<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Extension API Type Definitions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>typedef BOOL (SNMP_FUNC_TYPE * PFNSNMPEXTENSIONINIT)(<br>&nbsp; &nbsp; DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dwUpTimeReference,<br>&nbsp; &nbsp; HANDLE * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;phSubagentTrapEvent,<br>&nbsp; &nbsp; AsnObjectIdentifier * pFirstSupportedRegion<br>&nbsp; &nbsp; );<br><br>typedef BOOL (SNMP_FUNC_TYPE * PFNSNMPEXTENSIONINITEX)(<br>&nbsp; &nbsp; AsnObjectIdentifier * pNextSupportedRegion<br>&nbsp; &nbsp; );<br><br>typedef BOOL (SNMP_FUNC_TYPE * PFNSNMPEXTENSIONQUERY)(<br>&nbsp; &nbsp; BYTE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bPduType,<br>&nbsp; &nbsp; SnmpVarBindList * pVarBindList,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorStatus,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorIndex<br>&nbsp; &nbsp; );<br><br>typedef BOOL (SNMP_FUNC_TYPE * PFNSNMPEXTENSIONQUERYEX)(<br>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRequestType, &nbsp; <br>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTransactionId,<br>&nbsp; &nbsp; SnmpVarBindList * pVarBindList,<br>&nbsp; &nbsp; AsnOctetString * &nbsp;pContextInfo,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorStatus,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp;pErrorIndex<br>&nbsp; &nbsp; );<br><br>typedef BOOL (SNMP_FUNC_TYPE * PFNSNMPEXTENSIONTRAP)(<br>&nbsp; &nbsp; AsnObjectIdentifier * pEnterpriseOid,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp; &nbsp; &nbsp;pGenericTrapId,<br>&nbsp; &nbsp; AsnInteger32 * &nbsp; &nbsp; &nbsp; &nbsp;pSpecificTrapId,<br>&nbsp; &nbsp; AsnTimeticks * &nbsp; &nbsp; &nbsp; &nbsp;pTimeStamp,<br>&nbsp; &nbsp; SnmpVarBindList * &nbsp; &nbsp; pVarBindList<br>&nbsp; &nbsp; );<br><br>typedef VOID (SNMP_FUNC_TYPE * PFNSNMPEXTENSIONCLOSE)(<br>&nbsp; &nbsp; );<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP API Prototypes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilOidCpy(<br>&nbsp; &nbsp; AsnObjectIdentifier * pOidDst,<br>&nbsp; &nbsp; AsnObjectIdentifier * pOidSrc<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilOidAppend(<br>&nbsp; &nbsp; AsnObjectIdentifier * pOidDst,<br>&nbsp; &nbsp; AsnObjectIdentifier * pOidSrc<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilOidNCmp(<br>&nbsp; &nbsp; AsnObjectIdentifier * pOid1,<br>&nbsp; &nbsp; AsnObjectIdentifier * pOid2,<br>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSubIds<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilOidCmp(<br>&nbsp; &nbsp; AsnObjectIdentifier * pOid1,<br>&nbsp; &nbsp; AsnObjectIdentifier * pOid2<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilOidFree(<br>&nbsp; &nbsp; AsnObjectIdentifier * pOid<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilOctetsCmp(<br>&nbsp; &nbsp; AsnOctetString * pOctets1,<br>&nbsp; &nbsp; AsnOctetString * pOctets2<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilOctetsNCmp(<br>&nbsp; &nbsp; AsnOctetString * pOctets1,<br>&nbsp; &nbsp; AsnOctetString * pOctets2,<br>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nChars<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilOctetsCpy(<br>&nbsp; &nbsp; AsnOctetString * pOctetsDst,<br>&nbsp; &nbsp; AsnOctetString * pOctetsSrc<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilOctetsFree(<br>&nbsp; &nbsp; AsnOctetString * pOctets<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilAsnAnyCpy(<br>&nbsp; &nbsp; AsnAny * pAnyDst,<br>&nbsp; &nbsp; AsnAny * pAnySrc<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilAsnAnyFree(<br>&nbsp; &nbsp; AsnAny * pAny<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilVarBindCpy(<br>&nbsp; &nbsp; SnmpVarBind * pVbDst,<br>&nbsp; &nbsp; SnmpVarBind * pVbSrc<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilVarBindFree(<br>&nbsp; &nbsp; SnmpVarBind * pVb<br>&nbsp; &nbsp; );<br><br>SNMPAPI<br>SNMP_FUNC_TYPE<br>SnmpUtilVarBindListCpy(<br>&nbsp; &nbsp; SnmpVarBindList * pVblDst,<br>&nbsp; &nbsp; SnmpVarBindList * pVblSrc<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilVarBindListFree(<br>&nbsp; &nbsp; SnmpVarBindList * pVbl<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilMemFree(<br>&nbsp; &nbsp; LPVOID pMem<br>&nbsp; &nbsp; );<br><br>LPVOID<br>SNMP_FUNC_TYPE<br>SnmpUtilMemAlloc(<br>&nbsp; &nbsp; UINT nBytes<br>&nbsp; &nbsp; );<br><br>LPVOID<br>SNMP_FUNC_TYPE<br>SnmpUtilMemReAlloc(<br>&nbsp; &nbsp; LPVOID pMem,<br>&nbsp; &nbsp; UINT &nbsp; nBytes<br>&nbsp; &nbsp; );<br><br>LPSTR<br>SNMP_FUNC_TYPE<br>SnmpUtilOidToA(<br>&nbsp; &nbsp; IN AsnObjectIdentifier *Oid<br>&nbsp; &nbsp; );<br><br>LPSTR <br>SNMP_FUNC_TYPE<br>SnmpUtilIdsToA(<br>&nbsp; &nbsp; IN UINT *Ids,<br>&nbsp; &nbsp; IN UINT IdLength<br>&nbsp; &nbsp; );<br><br>VOID <br>SNMP_FUNC_TYPE<br>SnmpUtilPrintOid(<br>&nbsp; &nbsp; IN AsnObjectIdentifier *Oid <br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilPrintAsnAny(<br>&nbsp; &nbsp; AsnAny * pAny<br>&nbsp; &nbsp; );<br><br>DWORD<br>SNMP_FUNC_TYPE <br>SnmpSvcGetUptime(<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpSvcSetLogLevel(<br>&nbsp; &nbsp; INT nLogLevel<br>&nbsp; &nbsp; );<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpSvcSetLogType(<br>&nbsp; &nbsp; INT nLogType<br>&nbsp; &nbsp; );<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Debugging Definitions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define SNMP_LOG_SILENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0<br>#define SNMP_LOG_FATAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x1<br>#define SNMP_LOG_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x2<br>#define SNMP_LOG_WARNING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x3<br>#define SNMP_LOG_TRACE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x4<br>#define SNMP_LOG_VERBOSE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x5<br><br>#define SNMP_OUTPUT_TO_CONSOLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x1<br>#define SNMP_OUTPUT_TO_LOGFILE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x2<br>#define SNMP_OUTPUT_TO_EVENTLOG &nbsp; &nbsp; &nbsp; &nbsp; 0x4 &nbsp;// no longer supported<br>#define SNMP_OUTPUT_TO_DEBUGGER &nbsp; &nbsp; &nbsp; &nbsp; 0x8<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// SNMP Debugging Prototypes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>VOID<br>SNMP_FUNC_TYPE<br>SnmpUtilDbgPrint(<br>&nbsp; &nbsp; IN INT nLogLevel, &nbsp; // see log levels above...<br>&nbsp; &nbsp; IN LPSTR szFormat,<br>&nbsp; &nbsp; IN ...<br>&nbsp; &nbsp; );<br><br>#if DBG<br>#define SNMPDBG(_x_) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilDbgPrint _x_<br>#else<br>#define SNMPDBG(_x_)<br>#endif<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// Miscellaneous definitions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#define DEFINE_SIZEOF(Array) &nbsp; &nbsp; &nbsp; &nbsp;(sizeof(Array)/sizeof((Array)[0]))<br>#define DEFINE_OID(SubIdArray) &nbsp; &nbsp; &nbsp;{DEFINE_SIZEOF(SubIdArray),(SubIdArray)}<br>#define DEFINE_NULLOID() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{0,NULL} <br>#define DEFINE_NULLOCTETS() &nbsp; &nbsp; &nbsp; &nbsp; {NULL,0,FALSE}<br><br>#define DEFAULT_SNMP_PORT_UDP &nbsp; &nbsp; &nbsp; 161<br>#define DEFAULT_SNMP_PORT_IPX &nbsp; &nbsp; &nbsp; 36879<br>#define DEFAULT_SNMPTRAP_PORT_UDP &nbsp; 162<br>#define DEFAULT_SNMPTRAP_PORT_IPX &nbsp; 36880<br><br>#define SNMP_MAX_OID_LEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;128<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// API Error Code Definitions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>#define SNMP_MEM_ALLOC_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br>#define SNMP_BERAPI_INVALID_LENGTH &nbsp; &nbsp; &nbsp;10<br>#define SNMP_BERAPI_INVALID_TAG &nbsp; &nbsp; &nbsp; &nbsp; 11<br>#define SNMP_BERAPI_OVERFLOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;12<br>#define SNMP_BERAPI_SHORT_BUFFER &nbsp; &nbsp; &nbsp; &nbsp;13<br>#define SNMP_BERAPI_INVALID_OBJELEM &nbsp; &nbsp; 14<br>#define SNMP_PDUAPI_UNRECOGNIZED_PDU &nbsp; &nbsp;20<br>#define SNMP_PDUAPI_INVALID_ES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;21<br>#define SNMP_PDUAPI_INVALID_GT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;22<br>#define SNMP_AUTHAPI_INVALID_VERSION &nbsp; &nbsp;30<br>#define SNMP_AUTHAPI_INVALID_MSG_TYPE &nbsp; 31<br>#define SNMP_AUTHAPI_TRIV_AUTH_FAILED &nbsp; 32<br><br>///////////////////////////////////////////////////////////////////////////////<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// Support for old definitions (support disabled via SNMPSTRICT) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br>///////////////////////////////////////////////////////////////////////////////<br><br>#ifndef SNMPSTRICT<br><br>#define SNMP_oidcpy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SnmpUtilOidCpy<br>#define SNMP_oidappend &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilOidAppend<br>#define SNMP_oidncmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilOidNCmp<br>#define SNMP_oidcmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SnmpUtilOidCmp<br>#define SNMP_oidfree &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilOidFree<br><br>#define SNMP_CopyVarBindList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilVarBindListCpy<br>#define SNMP_FreeVarBindList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilVarBindListFree<br>#define SNMP_CopyVarBind &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilVarBindCpy<br>#define SNMP_FreeVarBind &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilVarBindFree<br><br>#define SNMP_printany &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SnmpUtilPrintAsnAny<br><br>#define SNMP_free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SnmpUtilMemFree<br>#define SNMP_malloc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SnmpUtilMemAlloc<br>#define SNMP_realloc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilMemReAlloc<br><br>#define SNMP_DBG_free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SnmpUtilMemFree<br>#define SNMP_DBG_malloc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SnmpUtilMemAlloc<br>#define SNMP_DBG_realloc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpUtilMemReAlloc<br><br>#define ASN_RFC1155_IPADDRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ASN_IPADDRESS<br>#define ASN_RFC1155_COUNTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ASN_COUNTER32<br>#define ASN_RFC1155_GAUGE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ASN_GAUGE32<br>#define ASN_RFC1155_TIMETICKS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ASN_TIMETICKS<br>#define ASN_RFC1155_OPAQUE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ASN_OPAQUE<br>#define ASN_RFC1213_DISPSTRING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ASN_OCTETSTRING<br><br>#define ASN_RFC1157_GETREQUEST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SNMP_PDU_GET &nbsp; &nbsp; <br>#define ASN_RFC1157_GETNEXTREQUEST &nbsp; &nbsp; &nbsp;SNMP_PDU_GETNEXT <br>#define ASN_RFC1157_GETRESPONSE &nbsp; &nbsp; &nbsp; &nbsp; SNMP_PDU_RESPONSE<br>#define ASN_RFC1157_SETREQUEST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SNMP_PDU_SET &nbsp; &nbsp; <br>#define ASN_RFC1157_TRAP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SNMP_PDU_V1TRAP &nbsp;<br><br>#define ASN_CONTEXTSPECIFIC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ASN_CONTEXT<br>#define ASN_PRIMATIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ASN_PRIMITIVE<br><br>#define RFC1157VarBindList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpVarBindList<br>#define RFC1157VarBind &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SnmpVarBind<br>#define AsnInteger &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnInteger32 &nbsp; &nbsp; &nbsp;<br>#define AsnCounter &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnCounter32 &nbsp; &nbsp; &nbsp;<br>#define AsnGauge &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AsnGauge32 &nbsp; &nbsp; &nbsp; &nbsp;<br><br>#endif // SNMPSTRICT<br><br>#ifdef __cplusplus<br>}<br>#endif<br><br>#endif // _INC_SNMP<br>
 
接受答案了.
 
后退
顶部