ReactOS  0.4.14-dev-293-g2b39b42
mgmtapi.h
Go to the documentation of this file.
1 /*
2  mgmtapi.h - Header file for the SNMP Management API
3 
4  Written by Filip Navara <xnavara@volny.cz>
5 
6  References (2003-08-25):
7  http://msdn.microsoft.com/library/en-us/snmp/snmp/snmp_reference.asp
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 */
13 
14 #ifndef _MGMTAPI_H
15 #define _MGMTAPI_H
16 
17 #ifndef _SNMP_H
18 #include <snmp.h>
19 #endif
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #define SNMP_MGMTAPI_TIMEOUT 40
26 #define SNMP_MGMTAPI_SELECT_FDERRORS 41
27 #define SNMP_MGMTAPI_TRAP_ERRORS 42
28 #define SNMP_MGMTAPI_TRAP_DUPINIT 43
29 #define SNMP_MGMTAPI_NOTRAPS 44
30 #define SNMP_MGMTAPI_AGAIN 45
31 #define SNMP_MGMTAPI_INVALID_CTL 46
32 #define SNMP_MGMTAPI_INVALID_SESSION 47
33 #define SNMP_MGMTAPI_INVALID_BUFFER 48
34 #define MGMCTL_SETAGENTPORT 1
35 
36 #ifndef RC_INVOKED
37 
39 
49 
50 #endif /* RC_INVOKED */
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 #endif
BOOL WINSNMPAPI SnmpMgrTrapListen(HANDLE *)
Definition: mgmtapi.c:41
INT WINSNMPAPI SnmpMgrRequest(LPSNMP_MGR_SESSION, BYTE, SnmpVarBindList *, AsnInteger *, AsnInteger *)
BOOL WINSNMPAPI SnmpMgrStrToOid(LPSTR, AsnObjectIdentifier *)
BOOL WINSNMPAPI SnmpMgrGetTrap(AsnObjectIdentifier *, AsnNetworkAddress *, AsnInteger *, AsnInteger *, AsnTimeticks *, SnmpVarBindList *)
BOOL WINSNMPAPI SnmpMgrGetTrapEx(AsnObjectIdentifier *, AsnNetworkAddress *, AsnNetworkAddress *, AsnInteger *, AsnInteger *, AsnOctetString *, AsnTimeticks *, SnmpVarBindList *)
char * LPSTR
Definition: xmlstorage.h:182
int32_t INT
Definition: typedefs.h:56
BOOL WINSNMPAPI SnmpMgrCtl(LPSNMP_MGR_SESSION, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD)
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned char BYTE
Definition: mem.h:68
#define WINSNMPAPI
Definition: winsnmp.h:34
AsnUnsigned32 AsnTimeticks
Definition: snmp.h:45
PVOID LPSNMP_MGR_SESSION
Definition: mgmtapi.h:38
uint32_t * LPDWORD
Definition: typedefs.h:57
BOOL WINSNMPAPI SnmpMgrOidToStr(AsnObjectIdentifier *, LPSTR *)
BOOL WINSNMPAPI SnmpMgrClose(LPSNMP_MGR_SESSION)
LPSNMP_MGR_SESSION WINSNMPAPI SnmpMgrOpen(LPSTR, LPSTR, INT, INT)