1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/**
* Windows API header module
*
* Translated from MinGW Windows headers
*
* Authors: Stewart Gordon
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC core/sys/windows/_mgmtapi.d)
*/
module core.sys.windows.mgmtapi;
version (Windows):
import core.sys.windows.snmp;
import core.sys.windows.windef;
enum {
SNMP_MGMTAPI_TIMEOUT = 40,
SNMP_MGMTAPI_SELECT_FDERRORS,
SNMP_MGMTAPI_TRAP_ERRORS,
SNMP_MGMTAPI_TRAP_DUPINIT,
SNMP_MGMTAPI_NOTRAPS,
SNMP_MGMTAPI_AGAIN,
SNMP_MGMTAPI_INVALID_CTL,
SNMP_MGMTAPI_INVALID_SESSION,
SNMP_MGMTAPI_INVALID_BUFFER // = 48
}
enum MGMCTL_SETAGENTPORT = 1;
alias PVOID LPSNMP_MGR_SESSION;
extern (Windows) {
BOOL SnmpMgrClose(LPSNMP_MGR_SESSION);
BOOL SnmpMgrCtl(LPSNMP_MGR_SESSION, DWORD, LPVOID, DWORD, LPVOID, DWORD,
LPDWORD);
BOOL SnmpMgrGetTrap(AsnObjectIdentifier*, AsnNetworkAddress*,
AsnInteger*, AsnInteger*, AsnTimeticks*, SnmpVarBindList*);
BOOL SnmpMgrGetTrapEx(AsnObjectIdentifier*, AsnNetworkAddress*,
AsnNetworkAddress*, AsnInteger*, AsnInteger*, AsnOctetString*,
AsnTimeticks*, SnmpVarBindList*);
BOOL SnmpMgrOidToStr(AsnObjectIdentifier*, LPSTR*);
LPSNMP_MGR_SESSION SnmpMgrOpen(LPSTR, LPSTR, INT, INT);
INT SnmpMgrRequest(LPSNMP_MGR_SESSION, BYTE, SnmpVarBindList*,
AsnInteger*, AsnInteger*);
BOOL SnmpMgrStrToOid(LPSTR, AsnObjectIdentifier*);
BOOL SnmpMgrTrapListen(HANDLE*);
}
|