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