Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/NetworkManagement/Snmp/mod.rs

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