ReactOS  0.4.15-dev-483-ga77a65a
winsnmp.h
Go to the documentation of this file.
1 /*
2  winsnmp.h - Header file for the Windows SNMP API
3 
4  Written by Filip Navara <xnavara@volny.cz>
5 
6  References (2003-08-25):
7  Windows SNMP
8  http://www.winsnmp.com/docs/winsnmp.doc
9 
10  WinSNMP v2.0 Addendum
11  http://www.winsnmp.com/docs/winsnmp2.txt
12 
13  WinSNMP v3.0 API Addendum
14  http://www.winsnmp.com/docs/winsnmp3.htm
15 
16  WinSNMP Reference
17  http://msdn.microsoft.com/library/en-us/snmp/snmp/winsnmp_api_reference.asp
18 
19  This library is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 */
23 
24 #ifndef _WINSNMP_H
25 #define _WINSNMP_H
26 
27 #ifndef _WINDOWS_H
28 #include <windows.h>
29 #endif
30 
31 #include <pshpack4.h>
32 
33 #ifndef WINSNMPAPI
34 #define WINSNMPAPI WINAPI
35 #endif
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 #define MAXOBJIDSIZE 128
42 #define MAXOBJIDSTRSIZE 1408
43 #define MAXVENDORINFO 32
44 #ifndef _SNMP_ASN_DEFINED
45 #define _SNMP_ASN_DEFINED
46 #define ASN_UNIVERSAL 0x00
47 #define ASN_PRIMITIVE 0x00
48 #define ASN_CONSTRUCTOR 0x20
49 #define ASN_APPLICATION 0x40
50 #define ASN_CONTEXT 0x80
51 #define ASN_PRIVATE 0xC0
52 #define SNMP_PDU_GET (ASN_CONTEXT | ASN_CONSTRUCTOR | 0)
53 #define SNMP_PDU_GETNEXT (ASN_CONTEXT | ASN_CONSTRUCTOR | 1)
54 #define SNMP_PDU_RESPONSE (ASN_CONTEXT | ASN_CONSTRUCTOR | 2)
55 #define SNMP_PDU_SET (ASN_CONTEXT | ASN_CONSTRUCTOR | 3)
56 #define SNMP_PDU_GETBULK (ASN_CONTEXT | ASN_CONSTRUCTOR | 4)
57 #define SNMP_PDU_V1TRAP (ASN_CONTEXT | ASN_CONSTRUCTOR | 4)
58 #define SNMP_PDU_INFORM (ASN_CONTEXT | ASN_CONSTRUCTOR | 6)
59 #define SNMP_PDU_TRAP (ASN_CONTEXT | ASN_CONSTRUCTOR | 7)
60 #define SNMP_PDU_REPORT (ASN_CONTEXT | ASN_CONSTRUCTOR | 8)
61 #endif /* _SNMP_ASN_DEFINED */
62 #define SNMP_SYNTAX_SEQUENCE (ASN_UNIVERSAL | ASN_CONSTRUCTOR | 0x10)
63 #define SNMP_SYNTAX_INT (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x02)
64 #define SNMP_SYNTAX_BITS (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x03)
65 #define SNMP_SYNTAX_OCTETS (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x04)
66 #define SNMP_SYNTAX_NULL (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x05)
67 #define SNMP_SYNTAX_OID (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x06)
68 #define SNMP_SYNTAX_IPADDR (ASN_APPLICATION | ASN_PRIMITIVE | 0x00)
69 #define SNMP_SYNTAX_CNTR32 (ASN_APPLICATION | ASN_PRIMITIVE | 0x01)
70 #define SNMP_SYNTAX_GAUGE32 (ASN_APPLICATION | ASN_PRIMITIVE | 0x02)
71 #define SNMP_SYNTAX_TIMETICKS (ASN_APPLICATION | ASN_PRIMITIVE | 0x03)
72 #define SNMP_SYNTAX_OPAQUE (ASN_APPLICATION | ASN_PRIMITIVE | 0x04)
73 #define SNMP_SYNTAX_NSAPADDR (ASN_APPLICATION | ASN_PRIMITIVE | 0x05)
74 #define SNMP_SYNTAX_CNTR64 (ASN_APPLICATION | ASN_PRIMITIVE | 0x06)
75 #define SNMP_SYNTAX_UINT32 (ASN_APPLICATION | ASN_PRIMITIVE | 0x07)
76 #define SNMP_SYNTAX_NOSUCHOBJECT (ASN_CONTEXT | ASN_PRIMITIVE | 0x00)
77 #define SNMP_SYNTAX_NOSUCHINSTANCE (ASN_CONTEXT | ASN_PRIMITIVE | 0x01)
78 #define SNMP_SYNTAX_ENDOFMIBVIEW (ASN_CONTEXT | ASN_PRIMITIVE | 0x02)
79 #define SNMP_SYNTAX_INT32 SNMP_SYNTAX_INT
80 #define SNMP_TRAP_COLDSTART 0
81 #define SNMP_TRAP_WARMSTART 1
82 #define SNMP_TRAP_LINKDOWN 2
83 #define SNMP_TRAP_LINKUP 3
84 #define SNMP_TRAP_AUTHFAIL 4
85 #define SNMP_TRAP_EGPNEIGHBORLOSS 5
86 #define SNMP_TRAP_ENTERPRISESPECIFIC 6
87 #define SNMP_ERROR_NOERROR 0
88 #define SNMP_ERROR_TOOBIG 1
89 #define SNMP_ERROR_NOSUCHNAME 2
90 #define SNMP_ERROR_BADVALUE 3
91 #define SNMP_ERROR_READONLY 4
92 #define SNMP_ERROR_GENERR 5
93 #define SNMP_ERROR_NOACCESS 6
94 #define SNMP_ERROR_WRONGTYPE 7
95 #define SNMP_ERROR_WRONGLENGTH 8
96 #define SNMP_ERROR_WRONGENCODING 9
97 #define SNMP_ERROR_WRONGVALUE 10
98 #define SNMP_ERROR_NOCREATION 11
99 #define SNMP_ERROR_INCONSISTENTVALUE 12
100 #define SNMP_ERROR_RESOURCEUNAVAILABLE 13
101 #define SNMP_ERROR_COMMITFAILED 14
102 #define SNMP_ERROR_UNDOFAILED 15
103 #define SNMP_ERROR_AUTHORIZATIONERROR 16
104 #define SNMP_ERROR_NOTWRITABLE 17
105 #define SNMP_ERROR_INCONSISTENTNAME 18
106 #define SNMP_SEC_MODEL_V1 1
107 #define SNMP_SEC_MODEL_V2 2
108 #define SNMP_SEC_MODEL_USM 3
109 #define SNMP_NOAUTH_NOPRIV 0
110 #define SNMP_AUTH_NOPRIV 1
111 #define SNMP_AUTH_PRIV 3
112 #define SNMP_USM_NO_AUTH_PROTOCOL 1
113 #define SNMP_USM_HMACMD5_AUTH_PROTOCOL 2
114 #define SNMP_USM_HMACSHA_AUTH_PROTOCOL 3
115 #define SNMP_USM_NO_PRIV_PROTOCOL 1
116 #define SNMP_USM_DES_PRIV_PROTOCOL 2
117 #define SNMPAPI_TRANSLATED 0
118 #define SNMPAPI_UNTRANSLATED_V1 1
119 #define SNMPAPI_UNTRANSLATED_V2 2
120 #define SNMPAPI_UNTRANSLATED_V3 3
121 #define SNMPAPI_OFF 0
122 #define SNMPAPI_ON 1
123 #define SNMPAPI_FAILURE 0
124 #define SNMPAPI_SUCCESS 1
125 #define SNMPAPI_NO_SUPPORT 0
126 #define SNMPAPI_V1_SUPPORT 1
127 #define SNMPAPI_V2_SUPPORT 2
128 #define SNMPAPI_M2M_SUPPORT 3
129 #define SNMPAPI_V3_SUPPORT 3
130 #define SNMPAPI_ALLOC_ERROR 2
131 #define SNMPAPI_CONTEXT_INVALID 3
132 #define SNMPAPI_CONTEXT_UNKNOWN 4
133 #define SNMPAPI_ENTITY_INVALID 5
134 #define SNMPAPI_ENTITY_UNKNOWN 6
135 #define SNMPAPI_INDEX_INVALID 7
136 #define SNMPAPI_NOOP 8
137 #define SNMPAPI_OID_INVALID 9
138 #define SNMPAPI_OPERATION_INVALID 10
139 #define SNMPAPI_OUTPUT_TRUNCATED 11
140 #define SNMPAPI_PDU_INVALID 12
141 #define SNMPAPI_SESSION_INVALID 13
142 #define SNMPAPI_SYNTAX_INVALID 14
143 #define SNMPAPI_VBL_INVALID 15
144 #define SNMPAPI_MODE_INVALID 16
145 #define SNMPAPI_SIZE_INVALID 17
146 #define SNMPAPI_NOT_INITIALIZED 18
147 #define SNMPAPI_MESSAGE_INVALID 19
148 #define SNMPAPI_HWND_INVALID 20
149 #define SNMPAPI_ENGINE_INVALID 30
150 #define SNMPAPI_ENGINE_DISCOVERY_FAILED 31
151 #define SNMPAPI_OTHER_ERROR 99
152 #define SNMPAPI_TL_NOT_INITIALIZED 100
153 #define SNMPAPI_TL_NOT_SUPPORTED 101
154 #define SNMPAPI_TL_NOT_AVAILABLE 102
155 #define SNMPAPI_TL_RESOURCE_ERROR 103
156 #define SNMPAPI_TL_UNDELIVERABLE 104
157 #define SNMPAPI_TL_SRC_INVALID 105
158 #define SNMPAPI_TL_INVALID_PARAM 106
159 #define SNMPAPI_TL_IN_USE 107
160 #define SNMPAPI_TL_TIMEOUT 108
161 #define SNMPAPI_TL_PDU_TOO_BIG 109
162 #define SNMPAPI_TL_OTHER 199
163 #define SNMPAPI_RPT_INVALIDMSG 200
164 #define SNMPAPI_RPT_INASNPARSEERR 201
165 #define SNMPAPI_RPT_UNKNOWNSECMODEL 202
166 #define SNMPAPI_RPT_UNKNOWNENGINEID 203
167 #define SNMPAPI_RPT_UNSUPPSECLEVEL 204
168 #define SNMPAPI_RPT_UNKNOWNUSERNAME 205
169 #define SNMPAPI_RPT_WRONGDIGEST 206
170 #define SNMPAPI_RPT_NOTINTIMEWINDOW 207
171 #define SNMPAPI_RPT_DECRYPTIONERROR 208
172 #define SNMPAPI_RPT_OTHER 299
173 
174 #ifndef RC_INVOKED
175 
181 typedef unsigned char smiBYTE, *smiLPBYTE;
182 typedef signed int smiINT, *smiLPINT;
183 typedef signed int smiINT32, *smiLPINT32;
184 typedef unsigned int smiUINT32, *smiLPUINT32;
189 typedef struct {
193 typedef const smiLPOCTETS smiLPCOCTETS;
194 typedef struct {
197 } smiOID, *smiLPOID;
198 typedef const smiLPOID smiLPCOID;
199 typedef struct {
203 typedef struct {
205  union {
212  } value;
213 } smiVALUE, *smiLPVALUE;
214 typedef const smiLPVALUE smiLPCVALUE;
215 typedef struct {
216  CHAR vendorName[MAXVENDORINFO*2];
217  CHAR vendorContact[MAXVENDORINFO*2];
218  CHAR vendorVersionId[MAXVENDORINFO];
219  CHAR vendorVersionDate[MAXVENDORINFO];
223 typedef struct
224 {
245 typedef struct
246 {
262 
298 SNMPAPI_STATUS WINSNMPAPI SnmpSetPduData(HSNMP_PDU,const smiINT *,const smiINT32 *,const smiINT *,const smiINT *,const HSNMP_VBL *);
309 /* Added in WinSNMP v3.0, not present in some (all?) versions of MS wsnmp32.dll */
319 
320 #endif /* RC_INVOKED */
321 
322 #ifdef __cplusplus
323 }
324 #endif
325 #include <poppack.h>
326 #endif
HANDLE HSNMP_CONTEXT
Definition: winsnmp.h:177
unsigned char * smiLPBYTE
Definition: winsnmp.h:181
smiOCTETS dSecurityName
Definition: winsnmp.h:254
struct smiENTITYINFO * smiLPENTITYINFO
signed int * smiLPINT
Definition: winsnmp.h:182
HSNMP_ENTITY hEntity
Definition: winsnmp.h:225
smiUINT32 nPolicyRetry
Definition: winsnmp.h:241
smiUINT32 nAddressFamily
Definition: winsnmp.h:230
struct smiCONTEXTINFO * smiLPCONTEXTINFO
SNMPAPI_STATUS WINSNMPAPI SnmpFreeEntity(HSNMP_ENTITY)
const smiLPOCTETS smiLPCOCTETS
Definition: winsnmp.h:193
struct smiOCTETS * smiLPOPAQUE
SNMPAPI_STATUS WINSNMPAPI SnmpCancelMsg(HSNMP_SESSION, smiINT32)
SNMPAPI_STATUS WINSNMPAPI SnmpRegister(HSNMP_SESSION, HSNMP_ENTITY, HSNMP_ENTITY, HSNMP_CONTEXT, smiLPCOID, smiUINT32)
SNMPAPI_STATUS WINSNMPAPI SnmpSetVb(HSNMP_VBL, smiUINT32, smiLPCOID, smiLPCVALUE)
SNMPAPI_STATUS WINSNMPAPI SnmpSetTranslateMode(smiUINT32)
HSNMP_PDU WINSNMPAPI SnmpDuplicatePdu(HSNMP_SESSION, HSNMP_PDU)
HANDLE HSNMP_ENTITY
Definition: winsnmp.h:180
SNMPAPI_STATUS WINSNMPAPI SnmpSetContextInfo(HSNMP_CONTEXT, smiLPCONTEXTINFO)
SNMPAPI_STATUS WINSNMPAPI SnmpClose(HSNMP_SESSION)
SNMPAPI_STATUS WINSNMPAPI SnmpStartup(smiLPUINT32, smiLPUINT32, smiLPUINT32, smiLPUINT32, smiLPUINT32)
smiCNTR64 hNumber
Definition: winsnmp.h:208
SNMPAPI_STATUS WINSNMPAPI SnmpFreeDescriptor(smiUINT32, smiLPOPAQUE)
SNMPAPI_STATUS WINSNMPAPI SnmpEncodeMsg(HSNMP_SESSION, HSNMP_ENTITY, HSNMP_ENTITY, HSNMP_CONTEXT, HSNMP_PDU, smiLPOCTETS)
char CHAR
Definition: xmlstorage.h:175
HANDLE * LPHSNMP_SESSION
Definition: winsnmp.h:176
smiTIMETICKS nPolicyTimeout
Definition: winsnmp.h:240
#define CALLBACK
Definition: compat.h:27
smiUINT32 nTranslateMode
Definition: winsnmp.h:249
struct smiOCTETS * smiLPNSAPADDR
HANDLE HWND
Definition: compat.h:13
HSNMP_SESSION hSession
Definition: winsnmp.h:248
smiUINT32 nSecurityLevel
Definition: winsnmp.h:256
smiOCTETS dContextEngineID
Definition: winsnmp.h:252
unsigned int smiUINT32
Definition: winsnmp.h:184
smiUINT32 nMaxMsgSize
Definition: winsnmp.h:234
smiUINT32 * smiLPCNTR32
Definition: winsnmp.h:185
SNMPAPI_STATUS WINSNMPAPI SnmpSetEntityInfo(HSNMP_ENTITY, smiLPENTITYINFO)
SNMPAPI_STATUS WINSNMPAPI SnmpGetEntityInfo(HSNMP_ENTITY, smiLPENTITYINFO)
HANDLE HSNMP_PDU
Definition: winsnmp.h:179
UINT_PTR WPARAM
Definition: windef.h:207
smiUINT32 nEngineBoots
Definition: winsnmp.h:236
char * LPSTR
Definition: xmlstorage.h:182
smiTIMETICKS nActualTimeout
Definition: winsnmp.h:242
SNMPAPI_STATUS WINSNMPAPI SnmpCountVbl(HSNMP_VBL)
const smiLPOID smiLPCOID
Definition: winsnmp.h:198
smiLPBYTE ptr
Definition: winsnmp.h:191
smiUINT32 len
Definition: winsnmp.h:195
signed int * smiLPINT32
Definition: winsnmp.h:183
smiBYTE empty
Definition: winsnmp.h:211
HANDLE HSNMP_SESSION
Definition: winsnmp.h:176
SNMPAPI_STATUS WINSNMPAPI SnmpContextToStr(HSNMP_CONTEXT, smiLPOCTETS)
smiUINT32 nActualRetry
Definition: winsnmp.h:243
HSNMP_CONTEXT hContext
Definition: winsnmp.h:247
SNMPAPI_STATUS WINSNMPAPI SnmpStrToOid(LPCSTR, smiLPOID)
SNMPAPI_STATUS WINSNMPAPI SnmpGetVendorInfo(smiLPVENDORINFO)
SNMPAPI_STATUS WINSNMPAPI SnmpRecvMsg(HSNMP_SESSION, LPHSNMP_ENTITY, LPHSNMP_ENTITY, LPHSNMP_CONTEXT, LPHSNMP_PDU)
unsigned char smiBYTE
Definition: winsnmp.h:181
SNMPAPI_STATUS WINSNMPAPI SnmpGetRetransmitMode(smiLPUINT32)
smiOCTETS dEngineID
Definition: winsnmp.h:235
smiUINT32 lopart
Definition: winsnmp.h:201
HSNMP_ENTITY WINSNMPAPI SnmpStrToEntity(HSNMP_SESSION, LPCSTR)
#define FAR
Definition: guiddef.h:36
SNMPAPI_STATUS WINSNMPAPI SnmpEntityToStr(HSNMP_ENTITY, smiUINT32, LPSTR)
smiLPUINT32 ptr
Definition: winsnmp.h:196
SNMPAPI_STATUS WINSNMPAPI SnmpSetRetry(HSNMP_ENTITY, smiUINT32)
SNMPAPI_STATUS(CALLBACK * SNMPAPI_CALLBACK)(HSNMP_SESSION, HWND, UINT, WPARAM, LPARAM, LPVOID)
Definition: winsnmp.h:222
LONG_PTR LPARAM
Definition: windef.h:208
unsigned int * smiLPUINT32
Definition: winsnmp.h:184
struct smiCNTR64 * smiLPCNTR64
HANDLE * LPHSNMP_CONTEXT
Definition: winsnmp.h:177
const char * LPCSTR
Definition: xmlstorage.h:183
smiUINT32 smiCNTR32
Definition: winsnmp.h:185
HSNMP_CONTEXT WINSNMPAPI SnmpStrToContext(HSNMP_SESSION, smiLPCOCTETS)
SNMPAPI_STATUS WINSNMPAPI SnmpGetVb(HSNMP_VBL, smiUINT32, smiLPOID, smiLPVALUE)
SNMPAPI_STATUS WINSNMPAPI SnmpFreeEntityInfo(smiLPENTITYINFO)
SNMPAPI_STATUS WINSNMPAPI SnmpOidCompare(smiLPCOID, smiLPCOID, smiUINT32, smiLPINT)
struct smiOID * smiLPOID
struct smiOCTETS * smiLPOCTETS
SNMPAPI_STATUS WINSNMPAPI SnmpGetContextInfo(HSNMP_CONTEXT, smiLPCONTEXTINFO)
smiUINT32 nSnmpVersion
Definition: winsnmp.h:250
HSNMP_SESSION WINSNMPAPI SnmpOpen(HWND, UINT)
HSNMP_VBL WINSNMPAPI SnmpDuplicateVbl(HSNMP_SESSION, HSNMP_VBL)
SNMPAPI_STATUS WINSNMPAPI SnmpSetPduData(HSNMP_PDU, const smiINT *, const smiINT32 *, const smiINT *, const smiINT *, const HSNMP_VBL *)
smiUINT32 * smiLPTIMETICKS
Definition: winsnmp.h:187
SNMPAPI_STATUS WINSNMPAPI SnmpOidCopy(smiLPCOID, smiLPOID)
HSNMP_SESSION hSession
Definition: winsnmp.h:226
smiUINT32 syntax
Definition: winsnmp.h:204
smiUINT32 nSecurityAuthProtocol
Definition: winsnmp.h:257
SNMPAPI_STATUS WINSNMPAPI SnmpDecodeMsg(HSNMP_SESSION, LPHSNMP_ENTITY, LPHSNMP_ENTITY, LPHSNMP_CONTEXT, LPHSNMP_PDU, smiLPCOCTETS)
smiUINT32 nNotificationPort
Definition: winsnmp.h:233
SNMPAPI_STATUS WINSNMPAPI SnmpSetPort(HSNMP_ENTITY, UINT)
HSNMP_VBL WINSNMPAPI SnmpCreateVbl(HSNMP_SESSION, smiLPCOID, smiLPCVALUE)
smiUINT32 nTranslateMode
Definition: winsnmp.h:227
#define LPVOID
Definition: nt_native.h:45
struct smiOCTETS smiNSAPADDR
HANDLE HSNMP_VBL
Definition: winsnmp.h:178
HSNMP_PDU WINSNMPAPI SnmpCreatePdu(HSNMP_SESSION, smiINT, smiINT32, smiINT, smiINT, HSNMP_VBL)
SNMPAPI_STATUS WINSNMPAPI SnmpCleanup(VOID)
smiINT sNumber
Definition: winsnmp.h:206
struct smiOCTETS * smiLPBITS
HANDLE * LPHSNMP_ENTITY
Definition: winsnmp.h:180
smiUINT32 nRetransmitMode
Definition: winsnmp.h:239
smiUINT32 nSecurityPrivProtocol
Definition: winsnmp.h:259
#define WINSNMPAPI
Definition: winsnmp.h:34
smiUINT32 * smiLPGAUGE32
Definition: winsnmp.h:186
smiOCTETS dSecurityPrivKey
Definition: winsnmp.h:260
GLsizei const GLfloat * value
Definition: glext.h:6069
smiUINT32 smiTIMETICKS
Definition: winsnmp.h:187
smiUINT32 nRequestPort
Definition: winsnmp.h:232
struct smiOCTETS smiOPAQUE
smiUINT32 smiGAUGE32
Definition: winsnmp.h:186
HANDLE * LPHSNMP_PDU
Definition: winsnmp.h:179
smiUINT32 nSecurityModel
Definition: winsnmp.h:255
smiUINT32 SNMPAPI_STATUS
Definition: winsnmp.h:188
SNMPAPI_STATUS WINSNMPAPI SnmpSetRetransmitMode(smiUINT32)
smiUINT32 nEngineSeconds
Definition: winsnmp.h:238
smiUINT32 uNumber
Definition: winsnmp.h:207
struct smiVALUE * smiLPVALUE
SNMPAPI_STATUS WINSNMPAPI SnmpGetLastError(HSNMP_SESSION)
smiOCTETS dSecurityAuthKey
Definition: winsnmp.h:258
unsigned int UINT
Definition: ndis.h:50
SNMPAPI_STATUS WINSNMPAPI SnmpGetTimeout(HSNMP_ENTITY, smiLPTIMETICKS, smiLPTIMETICKS)
signed int smiINT
Definition: winsnmp.h:182
SNMPAPI_STATUS WINSNMPAPI SnmpSetTimeout(HSNMP_ENTITY, smiTIMETICKS)
SNMPAPI_STATUS WINSNMPAPI SnmpDeleteVb(HSNMP_VBL, smiUINT32)
smiUINT32 nEngineTime
Definition: winsnmp.h:237
SNMPAPI_STATUS WINSNMPAPI SnmpFreeContextInfo(smiLPCONTEXTINFO)
struct smiOCTETS smiIPADDR
smiUINT32 len
Definition: winsnmp.h:190
HSNMP_ENTITY WINSNMPAPI SnmpCreateEntity(HSNMP_SESSION, smiLPENTITYINFO)
struct smiOCTETS smiBITS
signed int smiINT32
Definition: winsnmp.h:183
HANDLE * LPHSNMP_VBL
Definition: winsnmp.h:178
const smiLPVALUE smiLPCVALUE
Definition: winsnmp.h:214
SNMPAPI_STATUS WINSNMPAPI SnmpFreePdu(HSNMP_PDU)
SNMPAPI_STATUS WINSNMPAPI SnmpFreeContext(HSNMP_CONTEXT)
SNMPAPI_STATUS WINSNMPAPI SnmpPasswordToKey(smiLPOCTETS, smiINT32, smiLPOCTETS)
SNMPAPI_STATUS WINSNMPAPI SnmpSendMsg(HSNMP_SESSION, HSNMP_ENTITY, HSNMP_ENTITY, HSNMP_CONTEXT, HSNMP_PDU)
smiOCTETS dContextName
Definition: winsnmp.h:253
SNMPAPI_STATUS WINSNMPAPI SnmpListen(HSNMP_ENTITY, SNMPAPI_STATUS)
struct smiVENDORINFO * smiLPVENDORINFO
smiOID oid
Definition: winsnmp.h:210
smiUINT32 nSnmpVersion
Definition: winsnmp.h:228
SNMPAPI_STATUS WINSNMPAPI SnmpGetTranslateMode(smiLPUINT32)
smiOCTETS dAddressString
Definition: winsnmp.h:231
#define MAXVENDORINFO
Definition: winsnmp.h:43
smiOCTETS dFriendlyName
Definition: winsnmp.h:251
SNMPAPI_STATUS WINSNMPAPI SnmpFreeVbl(HSNMP_VBL)
smiOCTETS dFriendlyName
Definition: winsnmp.h:229
struct smiOCTETS * smiLPIPADDR
HSNMP_SESSION WINSNMPAPI SnmpCreateSession(HWND, UINT, SNMPAPI_CALLBACK, LPVOID)
smiOCTETS string
Definition: winsnmp.h:209
SNMPAPI_STATUS WINSNMPAPI SnmpGetRetry(HSNMP_ENTITY, smiLPUINT32, smiLPUINT32)
smiUINT32 vendorEnterprise
Definition: winsnmp.h:220
SNMPAPI_STATUS WINSNMPAPI SnmpGetPduData(HSNMP_PDU, smiLPINT, smiLPINT32, smiLPINT, smiLPINT, LPHSNMP_VBL)
smiUINT32 hipart
Definition: winsnmp.h:200
SNMPAPI_STATUS WINSNMPAPI SnmpOidToStr(smiLPCOID, smiUINT32, LPSTR)
HSNMP_CONTEXT WINSNMPAPI SnmpCreateContext(HSNMP_SESSION, smiLPCONTEXTINFO)