httpapi/tests: Added some basic tests for session and group creation.
[wine.git] / dlls / wevtapi / main.c
blob5b9949bad617b2db2562ed7ae8b13d843e9e5845
1 /*
2 * Copyright 2012 Austin English
3 * Copyright 2012 André Hentschel
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include "config.h"
22 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winevt.h"
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(wevtapi);
31 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
33 TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
35 switch (fdwReason)
37 case DLL_WINE_PREATTACH:
38 return FALSE; /* prefer native version */
39 case DLL_PROCESS_ATTACH:
40 DisableThreadLibraryCalls(hinstDLL);
41 break;
44 return TRUE;
47 EVT_HANDLE WINAPI EvtOpenSession(EVT_LOGIN_CLASS login_class, void *login, DWORD timeout, DWORD flags)
49 FIXME("(%u %p %u %u) stub\n", login_class, login, timeout, flags);
50 return NULL;
53 EVT_HANDLE WINAPI EvtOpenLog(EVT_HANDLE session, const WCHAR *path, DWORD flags)
55 FIXME("(%p %s %u) stub\n", session, debugstr_w(path), flags);
56 return NULL;
59 BOOL WINAPI EvtGetChannelConfigProperty(EVT_HANDLE ChannelConfig,
60 EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
61 DWORD Flags,
62 DWORD PropertyValueBufferSize,
63 PEVT_VARIANT PropertyValueBuffer,
64 DWORD *PropertyValueBufferUsed)
66 FIXME("(%p %i %u %u %p %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValueBufferSize,
67 PropertyValueBuffer, PropertyValueBufferUsed);
68 return FALSE;
71 BOOL WINAPI EvtSetChannelConfigProperty(EVT_HANDLE ChannelConfig,
72 EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
73 DWORD Flags,
74 PEVT_VARIANT PropertyValue)
76 FIXME("(%p %i %u %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValue);
77 return FALSE;
80 EVT_HANDLE WINAPI EvtSubscribe(EVT_HANDLE Session, HANDLE SignalEvent, LPCWSTR ChannelPath,
81 LPCWSTR Query, EVT_HANDLE Bookmark, PVOID context,
82 EVT_SUBSCRIBE_CALLBACK Callback, DWORD Flags)
84 FIXME("(%p %p %s %s %p %p %p %u) stub\n", Session, SignalEvent, debugstr_w(ChannelPath),
85 debugstr_w(Query), Bookmark, context, Callback, Flags);
86 return NULL;
89 EVT_HANDLE WINAPI EvtOpenChannelEnum(EVT_HANDLE session, DWORD flags)
91 FIXME("(%p %u) stub\n", session, flags);
92 return NULL;
95 BOOL WINAPI EvtNextChannelPath(EVT_HANDLE channel_enum, DWORD buffer_len, WCHAR *buffer, DWORD *used)
97 FIXME("(%p %u %p %p) stub\n", channel_enum, buffer_len, buffer, used);
98 return FALSE;
101 EVT_HANDLE WINAPI EvtOpenChannelConfig(EVT_HANDLE Session, LPCWSTR ChannelPath, DWORD Flags)
103 FIXME("(%p %s %u) stub\n", Session, debugstr_w(ChannelPath), Flags);
104 return NULL;
107 EVT_HANDLE WINAPI EvtQuery(EVT_HANDLE session, const WCHAR *path, const WCHAR *query, DWORD flags)
109 FIXME("(%p %s %s %u) stub\n", session, debugstr_w(path), debugstr_w(query), flags);
110 return NULL;
113 BOOL WINAPI EvtClose(EVT_HANDLE handle)
115 FIXME("(%p) stub\n", handle);
116 return TRUE;