mf/topoloader: Move node connection responsibility to connection function.
[wine/zf.git] / dlls / wevtapi / main.c
blobf7aa7a2a593f4b30cbe220531758befbecc6e02b
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 <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
24 #include "winevt.h"
25 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(wevtapi);
29 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
31 TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
33 switch (fdwReason)
35 case DLL_WINE_PREATTACH:
36 return FALSE; /* prefer native version */
37 case DLL_PROCESS_ATTACH:
38 DisableThreadLibraryCalls(hinstDLL);
39 break;
42 return TRUE;
45 EVT_HANDLE WINAPI EvtOpenSession(EVT_LOGIN_CLASS login_class, void *login, DWORD timeout, DWORD flags)
47 FIXME("(%u %p %u %u) stub\n", login_class, login, timeout, flags);
48 return NULL;
51 EVT_HANDLE WINAPI EvtOpenLog(EVT_HANDLE session, const WCHAR *path, DWORD flags)
53 FIXME("(%p %s %u) stub\n", session, debugstr_w(path), flags);
54 return NULL;
57 BOOL WINAPI EvtGetChannelConfigProperty(EVT_HANDLE ChannelConfig,
58 EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
59 DWORD Flags,
60 DWORD PropertyValueBufferSize,
61 PEVT_VARIANT PropertyValueBuffer,
62 DWORD *PropertyValueBufferUsed)
64 FIXME("(%p %i %u %u %p %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValueBufferSize,
65 PropertyValueBuffer, PropertyValueBufferUsed);
66 return FALSE;
69 BOOL WINAPI EvtSetChannelConfigProperty(EVT_HANDLE ChannelConfig,
70 EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
71 DWORD Flags,
72 PEVT_VARIANT PropertyValue)
74 FIXME("(%p %i %u %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValue);
75 return FALSE;
78 EVT_HANDLE WINAPI EvtSubscribe(EVT_HANDLE Session, HANDLE SignalEvent, LPCWSTR ChannelPath,
79 LPCWSTR Query, EVT_HANDLE Bookmark, PVOID context,
80 EVT_SUBSCRIBE_CALLBACK Callback, DWORD Flags)
82 FIXME("(%p %p %s %s %p %p %p %u) stub\n", Session, SignalEvent, debugstr_w(ChannelPath),
83 debugstr_w(Query), Bookmark, context, Callback, Flags);
84 return NULL;
87 EVT_HANDLE WINAPI EvtOpenChannelEnum(EVT_HANDLE session, DWORD flags)
89 FIXME("(%p %u) stub\n", session, flags);
90 return NULL;
93 BOOL WINAPI EvtNextChannelPath(EVT_HANDLE channel_enum, DWORD buffer_len, WCHAR *buffer, DWORD *used)
95 FIXME("(%p %u %p %p) stub\n", channel_enum, buffer_len, buffer, used);
96 return FALSE;
99 EVT_HANDLE WINAPI EvtOpenChannelConfig(EVT_HANDLE Session, LPCWSTR ChannelPath, DWORD Flags)
101 FIXME("(%p %s %u) stub\n", Session, debugstr_w(ChannelPath), Flags);
102 return NULL;
105 EVT_HANDLE WINAPI EvtQuery(EVT_HANDLE session, const WCHAR *path, const WCHAR *query, DWORD flags)
107 FIXME("(%p %s %s %u) stub\n", session, debugstr_w(path), debugstr_w(query), flags);
108 return NULL;
111 BOOL WINAPI EvtClose(EVT_HANDLE handle)
113 FIXME("(%p) stub\n", handle);
114 return TRUE;
117 BOOL WINAPI EvtNext(EVT_HANDLE result_set, DWORD size, EVT_HANDLE *array, DWORD timeout, DWORD flags, DWORD *ret_count)
119 FIXME("(%p %u %p %u %#x %p) stub!\n", result_set, size, array, timeout, flags, ret_count);
120 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
121 return FALSE;
124 BOOL WINAPI EvtExportLog(EVT_HANDLE session, const WCHAR *path, const WCHAR *query, const WCHAR *file, DWORD flags)
126 FIXME("(%p %s %s %s %#x) stub!\n", session, debugstr_w(path), debugstr_w(query), debugstr_w(file), flags);
127 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
128 return FALSE;