ReactOS
0.4.17-dev-934-g091855f
mgmtapi.c
Go to the documentation of this file.
1
/*
2
* Copyright 2012 Stefan Leichter
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
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. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
*/
18
19
#include <stdarg.h>
20
#include "
windef.h
"
21
#include "
winbase.h
"
22
#ifdef __REACTOS__
23
/* TODO: Fix the mgmtapi.h header, lots of missing types */
24
typedef
PVOID
LPSNMP_MGR_SESSION
;
25
#else
26
#include "
mgmtapi.h
"
27
#endif
28
#include "
wine/debug.h
"
29
30
WINE_DEFAULT_DEBUG_CHANNEL
(mgmtapi);
31
32
LPSNMP_MGR_SESSION
WINAPI
SnmpMgrOpen
(
char
*
hostname
,
char
*community,
int
timeout
,
int
retries)
33
{
34
FIXME
(
"stub: %s, %s, %d, %d\n"
,
hostname
, community,
timeout
, retries);
35
return
NULL
;
36
}
37
38
BOOL
WINAPI
SnmpMgrTrapListen
(
HANDLE
*
available
)
39
{
40
FIXME
(
"stub: %p\n"
,
available
);
41
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
42
return
FALSE
;
43
}
WINE_DEFAULT_DEBUG_CHANNEL
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition:
precomp.h:23
hostname
char * hostname
Definition:
ftp.c:88
FIXME
#define FIXME(fmt,...)
Definition:
precomp.h:53
NULL
#define NULL
Definition:
types.h:112
FALSE
#define FALSE
Definition:
types.h:117
available
static WCHAR available[MAX_STRING_RESOURCE_LEN]
Definition:
object.c:2402
ERROR_CALL_NOT_IMPLEMENTED
#define ERROR_CALL_NOT_IMPLEMENTED
Definition:
compat.h:102
SetLastError
#define SetLastError(x)
Definition:
compat.h:752
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
void
Definition:
nsiface.idl:2307
SnmpMgrOpen
LPSNMP_MGR_SESSION WINAPI SnmpMgrOpen(char *hostname, char *community, int timeout, int retries)
Definition:
mgmtapi.c:32
SnmpMgrTrapListen
BOOL WINAPI SnmpMgrTrapListen(HANDLE *available)
Definition:
mgmtapi.c:38
mgmtapi.h
LPSNMP_MGR_SESSION
PVOID LPSNMP_MGR_SESSION
Definition:
mgmtapi.h:38
debug.h
timeout
Definition:
dhcpd.h:248
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
mgmtapi
mgmtapi.c
Generated on Sat Sep 26 2026 06:06:32 for ReactOS by
1.9.6