shlwapi: Remove DECLSPEC_HIDDEN usage.
[wine.git] / dlls / wevtapi / main.c
blobf0db41ebf8814da5c4b7d7bb188c037b6d9ff94b
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 #define NONAMELESSUNION
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winevt.h"
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(wevtapi);
31 static const WCHAR log_pathW[] = L"C:\\windows\\temp\\evt.log";
33 EVT_HANDLE WINAPI EvtOpenSession(EVT_LOGIN_CLASS login_class, void *login, DWORD timeout, DWORD flags)
35 FIXME("(%u %p %lu %lu) stub\n", login_class, login, timeout, flags);
36 return NULL;
39 EVT_HANDLE WINAPI EvtOpenLog(EVT_HANDLE session, const WCHAR *path, DWORD flags)
41 FIXME("(%p %s %lu) stub\n", session, debugstr_w(path), flags);
42 return NULL;
45 BOOL WINAPI EvtGetChannelConfigProperty(EVT_HANDLE ChannelConfig,
46 EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
47 DWORD Flags,
48 DWORD PropertyValueBufferSize,
49 PEVT_VARIANT PropertyValueBuffer,
50 DWORD *PropertyValueBufferUsed)
52 FIXME("(%p %i %lu %lu %p %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValueBufferSize,
53 PropertyValueBuffer, PropertyValueBufferUsed);
55 switch (PropertyId)
57 case EvtChannelLoggingConfigLogFilePath:
58 *PropertyValueBufferUsed = sizeof(log_pathW) + sizeof(EVT_VARIANT);
60 if (PropertyValueBufferSize < sizeof(log_pathW) + sizeof(EVT_VARIANT) || !PropertyValueBuffer)
62 SetLastError(ERROR_INSUFFICIENT_BUFFER);
63 return FALSE;
66 PropertyValueBuffer->u.StringVal = (LPWSTR)(PropertyValueBuffer + 1);
67 wcscpy((LPWSTR)PropertyValueBuffer->u.StringVal, log_pathW);
68 PropertyValueBuffer->Type = EvtVarTypeString;
69 return TRUE;
71 default:
72 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
73 break;
76 return FALSE;
79 BOOL WINAPI EvtSetChannelConfigProperty(EVT_HANDLE ChannelConfig,
80 EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
81 DWORD Flags,
82 PEVT_VARIANT PropertyValue)
84 FIXME("(%p %i %lu %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValue);
85 return TRUE;
88 EVT_HANDLE WINAPI EvtSubscribe(EVT_HANDLE Session, HANDLE SignalEvent, LPCWSTR ChannelPath,
89 LPCWSTR Query, EVT_HANDLE Bookmark, PVOID context,
90 EVT_SUBSCRIBE_CALLBACK Callback, DWORD Flags)
92 FIXME("(%p %p %s %s %p %p %p %lu) stub\n", Session, SignalEvent, debugstr_w(ChannelPath),
93 debugstr_w(Query), Bookmark, context, Callback, Flags);
94 return NULL;
97 EVT_HANDLE WINAPI EvtOpenChannelEnum(EVT_HANDLE session, DWORD flags)
99 FIXME("(%p %lu) stub\n", session, flags);
100 return NULL;
103 BOOL WINAPI EvtNextChannelPath(EVT_HANDLE channel_enum, DWORD buffer_len, WCHAR *buffer, DWORD *used)
105 FIXME("(%p %lu %p %p) stub\n", channel_enum, buffer_len, buffer, used);
106 return FALSE;
109 EVT_HANDLE WINAPI EvtOpenChannelConfig(EVT_HANDLE Session, LPCWSTR ChannelPath, DWORD Flags)
111 FIXME("(%p %s %lu) stub\n", Session, debugstr_w(ChannelPath), Flags);
112 return (EVT_HANDLE)0xdeadbeef;
115 EVT_HANDLE WINAPI EvtQuery(EVT_HANDLE session, const WCHAR *path, const WCHAR *query, DWORD flags)
117 FIXME("(%p %s %s %lu) stub\n", session, debugstr_w(path), debugstr_w(query), flags);
118 return NULL;
121 BOOL WINAPI EvtSaveChannelConfig(EVT_HANDLE channel, DWORD flags)
123 FIXME("(%p,%08lx) stub\n", channel, flags);
124 return TRUE;
127 BOOL WINAPI EvtClose(EVT_HANDLE handle)
129 FIXME("(%p) stub\n", handle);
130 return TRUE;
133 BOOL WINAPI EvtNext(EVT_HANDLE result_set, DWORD size, EVT_HANDLE *array, DWORD timeout, DWORD flags, DWORD *ret_count)
135 FIXME("(%p %lu %p %lu %#lx %p) stub!\n", result_set, size, array, timeout, flags, ret_count);
136 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
137 return FALSE;
140 BOOL WINAPI EvtExportLog(EVT_HANDLE session, const WCHAR *path, const WCHAR *query, const WCHAR *file, DWORD flags)
142 FIXME("(%p %s %s %s %#lx) stub!\n", session, debugstr_w(path), debugstr_w(query), debugstr_w(file), flags);
143 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
144 return FALSE;