]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/Snmp/mod.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Win32 / NetworkManagement / Snmp / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {
4 pub fn SnmpCancelMsg(session: isize, reqid: i32) -> u32;
5 pub fn SnmpCleanup() -> u32;
6 pub fn SnmpCleanupEx() -> u32;
7 pub fn SnmpClose(session: isize) -> u32;
8 pub fn SnmpContextToStr(context: isize, string: *mut smiOCTETS) -> u32;
9 pub fn SnmpCountVbl(vbl: isize) -> u32;
10 pub fn SnmpCreatePdu(session: isize, pdu_type: SNMP_PDU_TYPE, request_id: i32, error_status: i32, error_index: i32, varbindlist: isize) -> isize;
11 #[cfg(feature = "Win32_Foundation")]
12 pub fn SnmpCreateSession(hwnd: super::super::Foundation::HWND, wmsg: u32, fcallback: ::core::option::Option<SNMPAPI_CALLBACK>, lpclientdata: *mut ::core::ffi::c_void) -> isize;
13 pub fn SnmpCreateVbl(session: isize, name: *mut smiOID, value: *mut smiVALUE) -> isize;
14 pub fn SnmpDecodeMsg(session: isize, srcentity: *mut isize, dstentity: *mut isize, context: *mut isize, pdu: *mut isize, msgbufdesc: *mut smiOCTETS) -> u32;
15 pub fn SnmpDeleteVb(vbl: isize, index: u32) -> u32;
16 pub fn SnmpDuplicatePdu(session: isize, pdu: isize) -> isize;
17 pub fn SnmpDuplicateVbl(session: isize, vbl: isize) -> isize;
18 pub fn SnmpEncodeMsg(session: isize, srcentity: isize, dstentity: isize, context: isize, pdu: isize, msgbufdesc: *mut smiOCTETS) -> u32;
19 #[cfg(feature = "Win32_Foundation")]
20 pub fn SnmpEntityToStr(entity: isize, size: u32, string: super::super::Foundation::PSTR) -> u32;
21 pub fn SnmpFreeContext(context: isize) -> u32;
22 pub fn SnmpFreeDescriptor(syntax: u32, descriptor: *mut smiOCTETS) -> u32;
23 pub fn SnmpFreeEntity(entity: isize) -> u32;
24 pub fn SnmpFreePdu(pdu: isize) -> u32;
25 pub fn SnmpFreeVbl(vbl: isize) -> u32;
26 pub fn SnmpGetLastError(session: isize) -> u32;
27 pub fn SnmpGetPduData(pdu: isize, pdu_type: *mut SNMP_PDU_TYPE, request_id: *mut i32, error_status: *mut SNMP_ERROR, error_index: *mut i32, varbindlist: *mut isize) -> u32;
28 pub fn SnmpGetRetransmitMode(nretransmitmode: *mut SNMP_STATUS) -> u32;
29 pub fn SnmpGetRetry(hentity: isize, npolicyretry: *mut u32, nactualretry: *mut u32) -> u32;
30 pub fn SnmpGetTimeout(hentity: isize, npolicytimeout: *mut u32, nactualtimeout: *mut u32) -> u32;
31 pub fn SnmpGetTranslateMode(ntranslatemode: *mut SNMP_API_TRANSLATE_MODE) -> u32;
32 pub fn SnmpGetVb(vbl: isize, index: u32, name: *mut smiOID, value: *mut smiVALUE) -> u32;
33 #[cfg(feature = "Win32_Foundation")]
34 pub fn SnmpGetVendorInfo(vendorinfo: *mut smiVENDORINFO) -> u32;
35 pub fn SnmpListen(hentity: isize, lstatus: SNMP_STATUS) -> u32;
36 pub fn SnmpListenEx(hentity: isize, lstatus: u32, nuseentityaddr: u32) -> u32;
37 #[cfg(feature = "Win32_Foundation")]
38 pub fn SnmpMgrClose(session: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL;
39 #[cfg(feature = "Win32_Foundation")]
40 pub fn SnmpMgrCtl(session: *mut ::core::ffi::c_void, dwctlcode: u32, lpvinbuffer: *mut ::core::ffi::c_void, cbinbuffer: u32, lpvoutbuffer: *mut ::core::ffi::c_void, cboutbuffer: u32, lpcbbytesreturned: *mut u32) -> super::super::Foundation::BOOL;
41 #[cfg(feature = "Win32_Foundation")]
42 pub fn SnmpMgrGetTrap(enterprise: *mut AsnObjectIdentifier, ipaddress: *mut AsnOctetString, generictrap: *mut SNMP_GENERICTRAP, specifictrap: *mut i32, timestamp: *mut u32, variablebindings: *mut SnmpVarBindList) -> super::super::Foundation::BOOL;
43 #[cfg(feature = "Win32_Foundation")]
44 pub fn SnmpMgrGetTrapEx(enterprise: *mut AsnObjectIdentifier, agentaddress: *mut AsnOctetString, sourceaddress: *mut AsnOctetString, generictrap: *mut SNMP_GENERICTRAP, specifictrap: *mut i32, community: *mut AsnOctetString, timestamp: *mut u32, variablebindings: *mut SnmpVarBindList) -> super::super::Foundation::BOOL;
45 #[cfg(feature = "Win32_Foundation")]
46 pub fn SnmpMgrOidToStr(oid: *mut AsnObjectIdentifier, string: *mut super::super::Foundation::PSTR) -> super::super::Foundation::BOOL;
47 #[cfg(feature = "Win32_Foundation")]
48 pub fn SnmpMgrOpen(lpagentaddress: super::super::Foundation::PSTR, lpagentcommunity: super::super::Foundation::PSTR, ntimeout: i32, nretries: i32) -> *mut ::core::ffi::c_void;
49 #[cfg(feature = "Win32_Foundation")]
50 pub fn SnmpMgrRequest(session: *mut ::core::ffi::c_void, requesttype: u8, variablebindings: *mut SnmpVarBindList, errorstatus: *mut SNMP_ERROR_STATUS, errorindex: *mut i32) -> i32;
51 #[cfg(feature = "Win32_Foundation")]
52 pub fn SnmpMgrStrToOid(string: super::super::Foundation::PSTR, oid: *mut AsnObjectIdentifier) -> super::super::Foundation::BOOL;
53 #[cfg(feature = "Win32_Foundation")]
54 pub fn SnmpMgrTrapListen(phtrapavailable: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
55 pub fn SnmpOidCompare(xoid: *mut smiOID, yoid: *mut smiOID, maxlen: u32, result: *mut i32) -> u32;
56 pub fn SnmpOidCopy(srcoid: *mut smiOID, dstoid: *mut smiOID) -> u32;
57 #[cfg(feature = "Win32_Foundation")]
58 pub fn SnmpOidToStr(srcoid: *const smiOID, size: u32, string: super::super::Foundation::PSTR) -> u32;
59 #[cfg(feature = "Win32_Foundation")]
60 pub fn SnmpOpen(hwnd: super::super::Foundation::HWND, wmsg: u32) -> isize;
61 pub fn SnmpRecvMsg(session: isize, srcentity: *mut isize, dstentity: *mut isize, context: *mut isize, pdu: *mut isize) -> u32;
62 pub fn SnmpRegister(session: isize, srcentity: isize, dstentity: isize, context: isize, notification: *mut smiOID, state: SNMP_STATUS) -> u32;
63 pub fn SnmpSendMsg(session: isize, srcentity: isize, dstentity: isize, context: isize, pdu: isize) -> u32;
64 pub fn SnmpSetPduData(pdu: isize, pdu_type: *const i32, request_id: *const i32, non_repeaters: *const i32, max_repetitions: *const i32, varbindlist: *const isize) -> u32;
65 pub fn SnmpSetPort(hentity: isize, nport: u32) -> u32;
66 pub fn SnmpSetRetransmitMode(nretransmitmode: SNMP_STATUS) -> u32;
67 pub fn SnmpSetRetry(hentity: isize, npolicyretry: u32) -> u32;
68 pub fn SnmpSetTimeout(hentity: isize, npolicytimeout: u32) -> u32;
69 pub fn SnmpSetTranslateMode(ntranslatemode: SNMP_API_TRANSLATE_MODE) -> u32;
70 pub fn SnmpSetVb(vbl: isize, index: u32, name: *mut smiOID, value: *mut smiVALUE) -> u32;
71 pub fn SnmpStartup(nmajorversion: *mut u32, nminorversion: *mut u32, nlevel: *mut u32, ntranslatemode: *mut SNMP_API_TRANSLATE_MODE, nretransmitmode: *mut SNMP_STATUS) -> u32;
72 pub fn SnmpStartupEx(nmajorversion: *mut u32, nminorversion: *mut u32, nlevel: *mut u32, ntranslatemode: *mut SNMP_API_TRANSLATE_MODE, nretransmitmode: *mut SNMP_STATUS) -> u32;
73 pub fn SnmpStrToContext(session: isize, string: *mut smiOCTETS) -> isize;
74 #[cfg(feature = "Win32_Foundation")]
75 pub fn SnmpStrToEntity(session: isize, string: super::super::Foundation::PSTR) -> isize;
76 #[cfg(feature = "Win32_Foundation")]
77 pub fn SnmpStrToOid(string: super::super::Foundation::PSTR, dstoid: *mut smiOID) -> u32;
78 pub fn SnmpSvcGetUptime() -> u32;
79 pub fn SnmpSvcSetLogLevel(nloglevel: SNMP_LOG);
80 pub fn SnmpSvcSetLogType(nlogtype: SNMP_OUTPUT_LOG_TYPE);
81 #[cfg(feature = "Win32_Foundation")]
82 pub fn SnmpUtilAsnAnyCpy(panydst: *mut AsnAny, panysrc: *mut AsnAny) -> i32;
83 #[cfg(feature = "Win32_Foundation")]
84 pub fn SnmpUtilAsnAnyFree(pany: *mut AsnAny);
85 #[cfg(feature = "Win32_Foundation")]
86 pub fn SnmpUtilDbgPrint(nloglevel: SNMP_LOG, szformat: super::super::Foundation::PSTR);
87 #[cfg(feature = "Win32_Foundation")]
88 pub fn SnmpUtilIdsToA(ids: *mut u32, idlength: u32) -> super::super::Foundation::PSTR;
89 pub fn SnmpUtilMemAlloc(nbytes: u32) -> *mut ::core::ffi::c_void;
90 pub fn SnmpUtilMemFree(pmem: *mut ::core::ffi::c_void);
91 pub fn SnmpUtilMemReAlloc(pmem: *mut ::core::ffi::c_void, nbytes: u32) -> *mut ::core::ffi::c_void;
92 #[cfg(feature = "Win32_Foundation")]
93 pub fn SnmpUtilOctetsCmp(poctets1: *mut AsnOctetString, poctets2: *mut AsnOctetString) -> i32;
94 #[cfg(feature = "Win32_Foundation")]
95 pub fn SnmpUtilOctetsCpy(poctetsdst: *mut AsnOctetString, poctetssrc: *mut AsnOctetString) -> i32;
96 #[cfg(feature = "Win32_Foundation")]
97 pub fn SnmpUtilOctetsFree(poctets: *mut AsnOctetString);
98 #[cfg(feature = "Win32_Foundation")]
99 pub fn SnmpUtilOctetsNCmp(poctets1: *mut AsnOctetString, poctets2: *mut AsnOctetString, nchars: u32) -> i32;
100 pub fn SnmpUtilOidAppend(poiddst: *mut AsnObjectIdentifier, poidsrc: *mut AsnObjectIdentifier) -> i32;
101 pub fn SnmpUtilOidCmp(poid1: *mut AsnObjectIdentifier, poid2: *mut AsnObjectIdentifier) -> i32;
102 pub fn SnmpUtilOidCpy(poiddst: *mut AsnObjectIdentifier, poidsrc: *mut AsnObjectIdentifier) -> i32;
103 pub fn SnmpUtilOidFree(poid: *mut AsnObjectIdentifier);
104 pub fn SnmpUtilOidNCmp(poid1: *mut AsnObjectIdentifier, poid2: *mut AsnObjectIdentifier, nsubids: u32) -> i32;
105 #[cfg(feature = "Win32_Foundation")]
106 pub fn SnmpUtilOidToA(oid: *mut AsnObjectIdentifier) -> super::super::Foundation::PSTR;
107 #[cfg(feature = "Win32_Foundation")]
108 pub fn SnmpUtilPrintAsnAny(pany: *mut AsnAny);
109 pub fn SnmpUtilPrintOid(oid: *mut AsnObjectIdentifier);
110 #[cfg(feature = "Win32_Foundation")]
111 pub fn SnmpUtilVarBindCpy(pvbdst: *mut SnmpVarBind, pvbsrc: *mut SnmpVarBind) -> i32;
112 #[cfg(feature = "Win32_Foundation")]
113 pub fn SnmpUtilVarBindFree(pvb: *mut SnmpVarBind);
114 #[cfg(feature = "Win32_Foundation")]
115 pub fn SnmpUtilVarBindListCpy(pvbldst: *mut SnmpVarBindList, pvblsrc: *mut SnmpVarBindList) -> i32;
116 #[cfg(feature = "Win32_Foundation")]
117 pub fn SnmpUtilVarBindListFree(pvbl: *mut SnmpVarBindList);
118 }
119 pub const ASN_APPLICATION: u32 = 64u32;
120 pub const ASN_CONSTRUCTOR: u32 = 32u32;
121 pub const ASN_CONTEXT: u32 = 128u32;
122 pub const ASN_CONTEXTSPECIFIC: u32 = 128u32;
123 pub const ASN_PRIMATIVE: u32 = 0u32;
124 pub const ASN_PRIMITIVE: u32 = 0u32;
125 pub const ASN_PRIVATE: u32 = 192u32;
126 pub const ASN_UNIVERSAL: u32 = 0u32;
127 #[repr(C)]
128 #[cfg(feature = "Win32_Foundation")]
129 pub struct AsnAny {
130 pub asnType: u8,
131 pub asnValue: AsnAny_0,
132 }
133 #[cfg(feature = "Win32_Foundation")]
134 impl ::core::marker::Copy for AsnAny {}
135 #[cfg(feature = "Win32_Foundation")]
136 impl ::core::clone::Clone for AsnAny {
137 fn clone(&self) -> Self {
138 *self
139 }
140 }
141 #[repr(C, packed(4))]
142 #[cfg(feature = "Win32_Foundation")]
143 pub union AsnAny_0 {
144 pub number: i32,
145 pub unsigned32: u32,
146 pub counter64: u64,
147 pub string: AsnOctetString,
148 pub bits: AsnOctetString,
149 pub object: AsnObjectIdentifier,
150 pub sequence: AsnOctetString,
151 pub address: AsnOctetString,
152 pub counter: u32,
153 pub gauge: u32,
154 pub ticks: u32,
155 pub arbitrary: AsnOctetString,
156 }
157 #[cfg(feature = "Win32_Foundation")]
158 impl ::core::marker::Copy for AsnAny_0 {}
159 #[cfg(feature = "Win32_Foundation")]
160 impl ::core::clone::Clone for AsnAny_0 {
161 fn clone(&self) -> Self {
162 *self
163 }
164 }
165 #[repr(C, packed(4))]
166 pub struct AsnObjectIdentifier {
167 pub idLength: u32,
168 pub ids: *mut u32,
169 }
170 impl ::core::marker::Copy for AsnObjectIdentifier {}
171 impl ::core::clone::Clone for AsnObjectIdentifier {
172 fn clone(&self) -> Self {
173 *self
174 }
175 }
176 #[repr(C, packed(4))]
177 #[cfg(feature = "Win32_Foundation")]
178 pub struct AsnOctetString {
179 pub stream: *mut u8,
180 pub length: u32,
181 pub dynamic: super::super::Foundation::BOOL,
182 }
183 #[cfg(feature = "Win32_Foundation")]
184 impl ::core::marker::Copy for AsnOctetString {}
185 #[cfg(feature = "Win32_Foundation")]
186 impl ::core::clone::Clone for AsnOctetString {
187 fn clone(&self) -> Self {
188 *self
189 }
190 }
191 pub const DEFAULT_SNMPTRAP_PORT_IPX: u32 = 36880u32;
192 pub const DEFAULT_SNMPTRAP_PORT_UDP: u32 = 162u32;
193 pub const DEFAULT_SNMP_PORT_IPX: u32 = 36879u32;
194 pub const DEFAULT_SNMP_PORT_UDP: u32 = 161u32;
195 pub const MAXOBJIDSIZE: u32 = 128u32;
196 pub const MAXOBJIDSTRSIZE: u32 = 1408u32;
197 pub const MAXVENDORINFO: u32 = 32u32;
198 pub const MGMCTL_SETAGENTPORT: u32 = 1u32;
199 pub type PFNSNMPCLEANUPEX = unsafe extern "system" fn() -> u32;
200 pub type PFNSNMPEXTENSIONCLOSE = unsafe extern "system" fn();
201 #[cfg(feature = "Win32_Foundation")]
202 pub type PFNSNMPEXTENSIONINIT = unsafe extern "system" fn(dwuptimereference: u32, phsubagenttrapevent: *mut super::super::Foundation::HANDLE, pfirstsupportedregion: *mut AsnObjectIdentifier) -> super::super::Foundation::BOOL;
203 #[cfg(feature = "Win32_Foundation")]
204 pub type PFNSNMPEXTENSIONINITEX = unsafe extern "system" fn(pnextsupportedregion: *mut AsnObjectIdentifier) -> super::super::Foundation::BOOL;
205 #[cfg(feature = "Win32_Foundation")]
206 pub type PFNSNMPEXTENSIONMONITOR = unsafe extern "system" fn(pagentmgmtdata: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL;
207 #[cfg(feature = "Win32_Foundation")]
208 pub type PFNSNMPEXTENSIONQUERY = unsafe extern "system" fn(bpdutype: u8, pvarbindlist: *mut SnmpVarBindList, perrorstatus: *mut i32, perrorindex: *mut i32) -> super::super::Foundation::BOOL;
209 #[cfg(feature = "Win32_Foundation")]
210 pub type PFNSNMPEXTENSIONQUERYEX = unsafe extern "system" fn(nrequesttype: u32, ntransactionid: u32, pvarbindlist: *mut SnmpVarBindList, pcontextinfo: *mut AsnOctetString, perrorstatus: *mut i32, perrorindex: *mut i32) -> super::super::Foundation::BOOL;
211 #[cfg(feature = "Win32_Foundation")]
212 pub type PFNSNMPEXTENSIONTRAP = unsafe extern "system" fn(penterpriseoid: *mut AsnObjectIdentifier, pgenerictrapid: *mut i32, pspecifictrapid: *mut i32, ptimestamp: *mut u32, pvarbindlist: *mut SnmpVarBindList) -> super::super::Foundation::BOOL;
213 pub type PFNSNMPSTARTUPEX = unsafe extern "system" fn(param0: *mut u32, param1: *mut u32, param2: *mut u32, param3: *mut u32, param4: *mut u32) -> u32;
214 pub const SNMPAPI_ALLOC_ERROR: u32 = 2u32;
215 #[cfg(feature = "Win32_Foundation")]
216 pub type SNMPAPI_CALLBACK = unsafe extern "system" fn(hsession: isize, hwnd: super::super::Foundation::HWND, wmsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpclientdata: *mut ::core::ffi::c_void) -> u32;
217 pub const SNMPAPI_CONTEXT_INVALID: u32 = 3u32;
218 pub const SNMPAPI_CONTEXT_UNKNOWN: u32 = 4u32;
219 pub const SNMPAPI_ENTITY_INVALID: u32 = 5u32;
220 pub const SNMPAPI_ENTITY_UNKNOWN: u32 = 6u32;
221 pub const SNMPAPI_ERROR: u32 = 0u32;
222 pub const SNMPAPI_FAILURE: u32 = 0u32;
223 pub const SNMPAPI_HWND_INVALID: u32 = 20u32;
224 pub const SNMPAPI_INDEX_INVALID: u32 = 7u32;
225 pub const SNMPAPI_M2M_SUPPORT: u32 = 3u32;
226 pub const SNMPAPI_MESSAGE_INVALID: u32 = 19u32;
227 pub const SNMPAPI_MODE_INVALID: u32 = 16u32;
228 pub const SNMPAPI_NOERROR: u32 = 1u32;
229 pub const SNMPAPI_NOOP: u32 = 8u32;
230 pub const SNMPAPI_NOT_INITIALIZED: u32 = 18u32;
231 pub const SNMPAPI_NO_SUPPORT: u32 = 0u32;
232 pub const SNMPAPI_OID_INVALID: u32 = 9u32;
233 pub const SNMPAPI_OPERATION_INVALID: u32 = 10u32;
234 pub const SNMPAPI_OTHER_ERROR: u32 = 99u32;
235 pub const SNMPAPI_OUTPUT_TRUNCATED: u32 = 11u32;
236 pub const SNMPAPI_PDU_INVALID: u32 = 12u32;
237 pub const SNMPAPI_SESSION_INVALID: u32 = 13u32;
238 pub const SNMPAPI_SIZE_INVALID: u32 = 17u32;
239 pub const SNMPAPI_SUCCESS: u32 = 1u32;
240 pub const SNMPAPI_SYNTAX_INVALID: u32 = 14u32;
241 pub const SNMPAPI_TL_INVALID_PARAM: u32 = 106u32;
242 pub const SNMPAPI_TL_IN_USE: u32 = 107u32;
243 pub const SNMPAPI_TL_NOT_AVAILABLE: u32 = 102u32;
244 pub const SNMPAPI_TL_NOT_INITIALIZED: u32 = 100u32;
245 pub const SNMPAPI_TL_NOT_SUPPORTED: u32 = 101u32;
246 pub const SNMPAPI_TL_OTHER: u32 = 199u32;
247 pub const SNMPAPI_TL_PDU_TOO_BIG: u32 = 109u32;
248 pub const SNMPAPI_TL_RESOURCE_ERROR: u32 = 103u32;
249 pub const SNMPAPI_TL_SRC_INVALID: u32 = 105u32;
250 pub const SNMPAPI_TL_TIMEOUT: u32 = 108u32;
251 pub const SNMPAPI_TL_UNDELIVERABLE: u32 = 104u32;
252 pub const SNMPAPI_V1_SUPPORT: u32 = 1u32;
253 pub const SNMPAPI_V2_SUPPORT: u32 = 2u32;
254 pub const SNMPAPI_VBL_INVALID: u32 = 15u32;
255 pub const SNMPLISTEN_ALL_ADDR: u32 = 1u32;
256 pub const SNMPLISTEN_USEENTITY_ADDR: u32 = 0u32;
257 pub const SNMP_ACCESS_NONE: u32 = 0u32;
258 pub const SNMP_ACCESS_NOTIFY: u32 = 1u32;
259 pub const SNMP_ACCESS_READ_CREATE: u32 = 4u32;
260 pub const SNMP_ACCESS_READ_ONLY: u32 = 2u32;
261 pub const SNMP_ACCESS_READ_WRITE: u32 = 3u32;
262 pub type SNMP_API_TRANSLATE_MODE = u32;
263 pub const SNMPAPI_TRANSLATED: SNMP_API_TRANSLATE_MODE = 0u32;
264 pub const SNMPAPI_UNTRANSLATED_V1: SNMP_API_TRANSLATE_MODE = 1u32;
265 pub const SNMPAPI_UNTRANSLATED_V2: SNMP_API_TRANSLATE_MODE = 2u32;
266 pub const SNMP_AUTHAPI_INVALID_MSG_TYPE: u32 = 31u32;
267 pub const SNMP_AUTHAPI_INVALID_VERSION: u32 = 30u32;
268 pub const SNMP_AUTHAPI_TRIV_AUTH_FAILED: u32 = 32u32;
269 pub const SNMP_BERAPI_INVALID_LENGTH: u32 = 10u32;
270 pub const SNMP_BERAPI_INVALID_OBJELEM: u32 = 14u32;
271 pub const SNMP_BERAPI_INVALID_TAG: u32 = 11u32;
272 pub const SNMP_BERAPI_OVERFLOW: u32 = 12u32;
273 pub const SNMP_BERAPI_SHORT_BUFFER: u32 = 13u32;
274 pub type SNMP_ERROR = u32;
275 pub const SNMP_ERROR_NOERROR: SNMP_ERROR = 0u32;
276 pub const SNMP_ERROR_TOOBIG: SNMP_ERROR = 1u32;
277 pub const SNMP_ERROR_NOSUCHNAME: SNMP_ERROR = 2u32;
278 pub const SNMP_ERROR_BADVALUE: SNMP_ERROR = 3u32;
279 pub const SNMP_ERROR_READONLY: SNMP_ERROR = 4u32;
280 pub const SNMP_ERROR_GENERR: SNMP_ERROR = 5u32;
281 pub const SNMP_ERROR_NOACCESS: SNMP_ERROR = 6u32;
282 pub const SNMP_ERROR_WRONGTYPE: SNMP_ERROR = 7u32;
283 pub const SNMP_ERROR_WRONGLENGTH: SNMP_ERROR = 8u32;
284 pub const SNMP_ERROR_WRONGENCODING: SNMP_ERROR = 9u32;
285 pub const SNMP_ERROR_WRONGVALUE: SNMP_ERROR = 10u32;
286 pub const SNMP_ERROR_NOCREATION: SNMP_ERROR = 11u32;
287 pub const SNMP_ERROR_INCONSISTENTVALUE: SNMP_ERROR = 12u32;
288 pub const SNMP_ERROR_RESOURCEUNAVAILABLE: SNMP_ERROR = 13u32;
289 pub const SNMP_ERROR_COMMITFAILED: SNMP_ERROR = 14u32;
290 pub const SNMP_ERROR_UNDOFAILED: SNMP_ERROR = 15u32;
291 pub const SNMP_ERROR_AUTHORIZATIONERROR: SNMP_ERROR = 16u32;
292 pub const SNMP_ERROR_NOTWRITABLE: SNMP_ERROR = 17u32;
293 pub const SNMP_ERROR_INCONSISTENTNAME: SNMP_ERROR = 18u32;
294 pub type SNMP_ERROR_STATUS = u32;
295 pub const SNMP_ERRORSTATUS_NOERROR: SNMP_ERROR_STATUS = 0u32;
296 pub const SNMP_ERRORSTATUS_TOOBIG: SNMP_ERROR_STATUS = 1u32;
297 pub const SNMP_ERRORSTATUS_NOSUCHNAME: SNMP_ERROR_STATUS = 2u32;
298 pub const SNMP_ERRORSTATUS_BADVALUE: SNMP_ERROR_STATUS = 3u32;
299 pub const SNMP_ERRORSTATUS_READONLY: SNMP_ERROR_STATUS = 4u32;
300 pub const SNMP_ERRORSTATUS_GENERR: SNMP_ERROR_STATUS = 5u32;
301 pub const SNMP_ERRORSTATUS_NOACCESS: SNMP_ERROR_STATUS = 6u32;
302 pub const SNMP_ERRORSTATUS_WRONGTYPE: SNMP_ERROR_STATUS = 7u32;
303 pub const SNMP_ERRORSTATUS_WRONGLENGTH: SNMP_ERROR_STATUS = 8u32;
304 pub const SNMP_ERRORSTATUS_WRONGENCODING: SNMP_ERROR_STATUS = 9u32;
305 pub const SNMP_ERRORSTATUS_WRONGVALUE: SNMP_ERROR_STATUS = 10u32;
306 pub const SNMP_ERRORSTATUS_NOCREATION: SNMP_ERROR_STATUS = 11u32;
307 pub const SNMP_ERRORSTATUS_INCONSISTENTVALUE: SNMP_ERROR_STATUS = 12u32;
308 pub const SNMP_ERRORSTATUS_RESOURCEUNAVAILABLE: SNMP_ERROR_STATUS = 13u32;
309 pub const SNMP_ERRORSTATUS_COMMITFAILED: SNMP_ERROR_STATUS = 14u32;
310 pub const SNMP_ERRORSTATUS_UNDOFAILED: SNMP_ERROR_STATUS = 15u32;
311 pub const SNMP_ERRORSTATUS_AUTHORIZATIONERROR: SNMP_ERROR_STATUS = 16u32;
312 pub const SNMP_ERRORSTATUS_NOTWRITABLE: SNMP_ERROR_STATUS = 17u32;
313 pub const SNMP_ERRORSTATUS_INCONSISTENTNAME: SNMP_ERROR_STATUS = 18u32;
314 pub type SNMP_EXTENSION_REQUEST_TYPE = u32;
315 pub const SNMP_EXTENSION_GET: SNMP_EXTENSION_REQUEST_TYPE = 160u32;
316 pub const SNMP_EXTENSION_GET_NEXT: SNMP_EXTENSION_REQUEST_TYPE = 161u32;
317 pub const SNMP_EXTENSION_SET_TEST: SNMP_EXTENSION_REQUEST_TYPE = 224u32;
318 pub const SNMP_EXTENSION_SET_COMMIT: SNMP_EXTENSION_REQUEST_TYPE = 163u32;
319 pub const SNMP_EXTENSION_SET_UNDO: SNMP_EXTENSION_REQUEST_TYPE = 225u32;
320 pub const SNMP_EXTENSION_SET_CLEANUP: SNMP_EXTENSION_REQUEST_TYPE = 226u32;
321 pub type SNMP_GENERICTRAP = u32;
322 pub const SNMP_GENERICTRAP_COLDSTART: SNMP_GENERICTRAP = 0u32;
323 pub const SNMP_GENERICTRAP_WARMSTART: SNMP_GENERICTRAP = 1u32;
324 pub const SNMP_GENERICTRAP_LINKDOWN: SNMP_GENERICTRAP = 2u32;
325 pub const SNMP_GENERICTRAP_LINKUP: SNMP_GENERICTRAP = 3u32;
326 pub const SNMP_GENERICTRAP_AUTHFAILURE: SNMP_GENERICTRAP = 4u32;
327 pub const SNMP_GENERICTRAP_EGPNEIGHLOSS: SNMP_GENERICTRAP = 5u32;
328 pub const SNMP_GENERICTRAP_ENTERSPECIFIC: SNMP_GENERICTRAP = 6u32;
329 pub type SNMP_LOG = u32;
330 pub const SNMP_LOG_SILENT: SNMP_LOG = 0u32;
331 pub const SNMP_LOG_FATAL: SNMP_LOG = 1u32;
332 pub const SNMP_LOG_ERROR: SNMP_LOG = 2u32;
333 pub const SNMP_LOG_WARNING: SNMP_LOG = 3u32;
334 pub const SNMP_LOG_TRACE: SNMP_LOG = 4u32;
335 pub const SNMP_LOG_VERBOSE: SNMP_LOG = 5u32;
336 pub const SNMP_MAX_OID_LEN: u32 = 128u32;
337 pub const SNMP_MEM_ALLOC_ERROR: u32 = 1u32;
338 pub const SNMP_MGMTAPI_AGAIN: u32 = 45u32;
339 pub const SNMP_MGMTAPI_INVALID_BUFFER: u32 = 48u32;
340 pub const SNMP_MGMTAPI_INVALID_CTL: u32 = 46u32;
341 pub const SNMP_MGMTAPI_INVALID_SESSION: u32 = 47u32;
342 pub const SNMP_MGMTAPI_NOTRAPS: u32 = 44u32;
343 pub const SNMP_MGMTAPI_SELECT_FDERRORS: u32 = 41u32;
344 pub const SNMP_MGMTAPI_TIMEOUT: u32 = 40u32;
345 pub const SNMP_MGMTAPI_TRAP_DUPINIT: u32 = 43u32;
346 pub const SNMP_MGMTAPI_TRAP_ERRORS: u32 = 42u32;
347 pub type SNMP_OUTPUT_LOG_TYPE = u32;
348 pub const SNMP_OUTPUT_TO_CONSOLE: SNMP_OUTPUT_LOG_TYPE = 1u32;
349 pub const SNMP_OUTPUT_TO_LOGFILE: SNMP_OUTPUT_LOG_TYPE = 2u32;
350 pub const SNMP_OUTPUT_TO_DEBUGGER: SNMP_OUTPUT_LOG_TYPE = 8u32;
351 pub const SNMP_OUTPUT_TO_EVENTLOG: u32 = 4u32;
352 pub const SNMP_PDUAPI_INVALID_ES: u32 = 21u32;
353 pub const SNMP_PDUAPI_INVALID_GT: u32 = 22u32;
354 pub const SNMP_PDUAPI_UNRECOGNIZED_PDU: u32 = 20u32;
355 pub type SNMP_PDU_TYPE = u32;
356 pub const SNMP_PDU_GET: SNMP_PDU_TYPE = 160u32;
357 pub const SNMP_PDU_GETNEXT: SNMP_PDU_TYPE = 161u32;
358 pub const SNMP_PDU_RESPONSE: SNMP_PDU_TYPE = 162u32;
359 pub const SNMP_PDU_SET: SNMP_PDU_TYPE = 163u32;
360 pub const SNMP_PDU_GETBULK: SNMP_PDU_TYPE = 165u32;
361 pub const SNMP_PDU_TRAP: SNMP_PDU_TYPE = 167u32;
362 pub type SNMP_STATUS = u32;
363 pub const SNMPAPI_ON: SNMP_STATUS = 1u32;
364 pub const SNMPAPI_OFF: SNMP_STATUS = 0u32;
365 pub const SNMP_TRAP_AUTHFAIL: u32 = 4u32;
366 pub const SNMP_TRAP_COLDSTART: u32 = 0u32;
367 pub const SNMP_TRAP_EGPNEIGHBORLOSS: u32 = 5u32;
368 pub const SNMP_TRAP_ENTERPRISESPECIFIC: u32 = 6u32;
369 pub const SNMP_TRAP_LINKDOWN: u32 = 2u32;
370 pub const SNMP_TRAP_LINKUP: u32 = 3u32;
371 pub const SNMP_TRAP_WARMSTART: u32 = 1u32;
372 #[repr(C)]
373 #[cfg(feature = "Win32_Foundation")]
374 pub struct SnmpVarBind {
375 pub name: AsnObjectIdentifier,
376 pub value: AsnAny,
377 }
378 #[cfg(feature = "Win32_Foundation")]
379 impl ::core::marker::Copy for SnmpVarBind {}
380 #[cfg(feature = "Win32_Foundation")]
381 impl ::core::clone::Clone for SnmpVarBind {
382 fn clone(&self) -> Self {
383 *self
384 }
385 }
386 #[repr(C, packed(4))]
387 #[cfg(feature = "Win32_Foundation")]
388 pub struct SnmpVarBindList {
389 pub list: *mut SnmpVarBind,
390 pub len: u32,
391 }
392 #[cfg(feature = "Win32_Foundation")]
393 impl ::core::marker::Copy for SnmpVarBindList {}
394 #[cfg(feature = "Win32_Foundation")]
395 impl ::core::clone::Clone for SnmpVarBindList {
396 fn clone(&self) -> Self {
397 *self
398 }
399 }
400 #[repr(C)]
401 pub struct smiCNTR64 {
402 pub hipart: u32,
403 pub lopart: u32,
404 }
405 impl ::core::marker::Copy for smiCNTR64 {}
406 impl ::core::clone::Clone for smiCNTR64 {
407 fn clone(&self) -> Self {
408 *self
409 }
410 }
411 #[repr(C)]
412 pub struct smiOCTETS {
413 pub len: u32,
414 pub ptr: *mut u8,
415 }
416 impl ::core::marker::Copy for smiOCTETS {}
417 impl ::core::clone::Clone for smiOCTETS {
418 fn clone(&self) -> Self {
419 *self
420 }
421 }
422 #[repr(C)]
423 pub struct smiOID {
424 pub len: u32,
425 pub ptr: *mut u32,
426 }
427 impl ::core::marker::Copy for smiOID {}
428 impl ::core::clone::Clone for smiOID {
429 fn clone(&self) -> Self {
430 *self
431 }
432 }
433 #[repr(C)]
434 pub struct smiVALUE {
435 pub syntax: u32,
436 pub value: smiVALUE_0,
437 }
438 impl ::core::marker::Copy for smiVALUE {}
439 impl ::core::clone::Clone for smiVALUE {
440 fn clone(&self) -> Self {
441 *self
442 }
443 }
444 #[repr(C)]
445 pub union smiVALUE_0 {
446 pub sNumber: i32,
447 pub uNumber: u32,
448 pub hNumber: smiCNTR64,
449 pub string: smiOCTETS,
450 pub oid: smiOID,
451 pub empty: u8,
452 }
453 impl ::core::marker::Copy for smiVALUE_0 {}
454 impl ::core::clone::Clone for smiVALUE_0 {
455 fn clone(&self) -> Self {
456 *self
457 }
458 }
459 #[repr(C)]
460 #[cfg(feature = "Win32_Foundation")]
461 pub struct smiVENDORINFO {
462 pub vendorName: [super::super::Foundation::CHAR; 64],
463 pub vendorContact: [super::super::Foundation::CHAR; 64],
464 pub vendorVersionId: [super::super::Foundation::CHAR; 32],
465 pub vendorVersionDate: [super::super::Foundation::CHAR; 32],
466 pub vendorEnterprise: u32,
467 }
468 #[cfg(feature = "Win32_Foundation")]
469 impl ::core::marker::Copy for smiVENDORINFO {}
470 #[cfg(feature = "Win32_Foundation")]
471 impl ::core::clone::Clone for smiVENDORINFO {
472 fn clone(&self) -> Self {
473 *self
474 }
475 }