ReactOS 0.4.17-dev-1190-g4c812f4
main.c
Go to the documentation of this file.
1/*
2 * Copyright 2012 Austin English
3 * Copyright 2012 André Hentschel
4 *
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.
9 *
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.
14 *
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
18 */
19
20#include <stdarg.h>
21
22#include "windef.h"
23#include "winbase.h"
24#include "winevt.h"
25#include "wine/debug.h"
26
28
29static const WCHAR log_pathW[] = L"C:\\windows\\temp\\evt.log";
30
32{
33 FIXME("(%u %p %lu %lu) stub\n", login_class, login, timeout, flags);
34 return NULL;
35}
36
38{
39 FIXME("(%p %s %lu) stub\n", session, debugstr_w(path), flags);
40 return NULL;
41}
42
46 DWORD PropertyValueBufferSize,
47 PEVT_VARIANT PropertyValueBuffer,
48 DWORD *PropertyValueBufferUsed)
49{
50 FIXME("(%p %i %lu %lu %p %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValueBufferSize,
51 PropertyValueBuffer, PropertyValueBufferUsed);
52
53 switch (PropertyId)
54 {
56 *PropertyValueBufferUsed = sizeof(log_pathW) + sizeof(EVT_VARIANT);
57
58 if (PropertyValueBufferSize < sizeof(log_pathW) + sizeof(EVT_VARIANT) || !PropertyValueBuffer)
59 {
61 return FALSE;
62 }
63
64 PropertyValueBuffer->StringVal = (LPWSTR)(PropertyValueBuffer + 1);
65 wcscpy((LPWSTR)PropertyValueBuffer->StringVal, log_pathW);
66 PropertyValueBuffer->Type = EvtVarTypeString;
67 return TRUE;
68
69 default:
71 break;
72 }
73
74 return FALSE;
75}
76
80 PEVT_VARIANT PropertyValue)
81{
82 FIXME("(%p %i %lu %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValue);
83 return TRUE;
84}
85
86EVT_HANDLE WINAPI EvtSubscribe(EVT_HANDLE Session, HANDLE SignalEvent, LPCWSTR ChannelPath,
89{
90 FIXME("(%p %p %s %s %p %p %p %lu) stub\n", Session, SignalEvent, debugstr_w(ChannelPath),
92 return NULL;
93}
94
96{
97 FIXME("(%p %lu) stub\n", session, flags);
98 return NULL;
99}
100
102{
103 FIXME("(%p %lu %p %p) stub\n", channel_enum, buffer_len, buffer, used);
104 return FALSE;
105}
106
108{
109 FIXME("(%p %s %lu) stub\n", Session, debugstr_w(ChannelPath), Flags);
110#ifdef __REACTOS__
111 return (EVT_HANDLE)(UINT_PTR)0xdeadbeef;
112#else
113 return (EVT_HANDLE)0xdeadbeef;
114#endif
115}
116
118{
119 FIXME("(%p %s %s %lu) stub\n", session, debugstr_w(path), debugstr_w(query), flags);
120 return NULL;
121}
122
124{
125 FIXME("(%p,%08lx) stub\n", channel, flags);
126 return TRUE;
127}
128
130{
131 FIXME("(%p) stub\n", handle);
132 return TRUE;
133}
134
136{
137 FIXME("(%p %lu %p %lu %#lx %p) stub!\n", result_set, size, array, timeout, flags, ret_count);
139 return FALSE;
140}
141
143{
144 FIXME("(%p %s %s %s %#lx) stub!\n", session, debugstr_w(path), debugstr_w(query), debugstr_w(file), flags);
146 return FALSE;
147}
148
150{
151 FIXME("(%s) stub!\n", debugstr_w(bookmark_xml));
153 return NULL;
154}
155
157{
158 FIXME("(%lu %p %#lx) stub!\n", pathcount, paths, flags);
160 return NULL;
161}
162
164 DWORD *buffer_used, DWORD *property_count)
165{
166 FIXME("(%p %p %#lx %lu %p %p %p) stub!\n", context, fragment, flags, buffer_size, buffer, buffer_used, property_count);
168 return FALSE;
169}
static int used
Definition: adh-main.c:39
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
int login(const char *host)
Definition: ftp.c:189
BOOL Query(LPCTSTR *ServiceArgs, DWORD ArgCount, BOOL bExtended)
Definition: query.c:292
#define FIXME(fmt,...)
Definition: precomp.h:53
_In_ PSTORAGE_PROPERTY_ID PropertyId
Definition: cdrom.h:932
#define ERROR_INSUFFICIENT_BUFFER
Definition: dderror.h:10
_In_ ULONG _In_ ULONG _In_opt_ DXGKCB_MIRACAST_SEND_MESSAGE_CALLBACK Callback
Definition: dispmprt.h:620
_In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ ULONG _In_ ULONG Flags
Definition: dispmprt.h:245
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define SetLastError(x)
Definition: compat.h:752
EVT_HANDLE WINAPI EvtOpenLog(EVT_HANDLE session, const WCHAR *path, DWORD flags)
Definition: main.c:37
EVT_HANDLE WINAPI EvtQuery(EVT_HANDLE session, const WCHAR *path, const WCHAR *query, DWORD flags)
Definition: main.c:117
EVT_HANDLE WINAPI EvtSubscribe(EVT_HANDLE Session, HANDLE SignalEvent, LPCWSTR ChannelPath, LPCWSTR Query, EVT_HANDLE Bookmark, PVOID context, EVT_SUBSCRIBE_CALLBACK Callback, DWORD Flags)
Definition: main.c:86
BOOL WINAPI EvtGetChannelConfigProperty(EVT_HANDLE ChannelConfig, EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId, DWORD Flags, DWORD PropertyValueBufferSize, PEVT_VARIANT PropertyValueBuffer, DWORD *PropertyValueBufferUsed)
Definition: main.c:43
static const WCHAR log_pathW[]
Definition: main.c:29
BOOL WINAPI EvtRender(EVT_HANDLE context, EVT_HANDLE fragment, DWORD flags, DWORD buffer_size, void *buffer, DWORD *buffer_used, DWORD *property_count)
Definition: main.c:163
EVT_HANDLE WINAPI EvtOpenSession(EVT_LOGIN_CLASS login_class, void *login, DWORD timeout, DWORD flags)
Definition: main.c:31
EVT_HANDLE WINAPI EvtCreateRenderContext(DWORD pathcount, const WCHAR **paths, DWORD flags)
Definition: main.c:156
BOOL WINAPI EvtClose(EVT_HANDLE handle)
Definition: main.c:129
BOOL WINAPI EvtNext(EVT_HANDLE result_set, DWORD size, EVT_HANDLE *array, DWORD timeout, DWORD flags, DWORD *ret_count)
Definition: main.c:135
BOOL WINAPI EvtSaveChannelConfig(EVT_HANDLE channel, DWORD flags)
Definition: main.c:123
BOOL WINAPI EvtSetChannelConfigProperty(EVT_HANDLE ChannelConfig, EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId, DWORD Flags, PEVT_VARIANT PropertyValue)
Definition: main.c:77
BOOL WINAPI EvtExportLog(EVT_HANDLE session, const WCHAR *path, const WCHAR *query, const WCHAR *file, DWORD flags)
Definition: main.c:142
BOOL WINAPI EvtNextChannelPath(EVT_HANDLE channel_enum, DWORD buffer_len, WCHAR *buffer, DWORD *used)
Definition: main.c:101
EVT_HANDLE WINAPI EvtOpenChannelConfig(EVT_HANDLE Session, LPCWSTR ChannelPath, DWORD Flags)
Definition: main.c:107
EVT_HANDLE WINAPI EvtCreateBookmark(const WCHAR *bookmark_xml)
Definition: main.c:149
EVT_HANDLE WINAPI EvtOpenChannelEnum(EVT_HANDLE session, DWORD flags)
Definition: main.c:95
#define L(x)
Definition: resources.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
GLbitfield flags
Definition: glext.h:7161
GLsizei const GLuint * paths
Definition: glext.h:11717
#define debugstr_w
Definition: kernel32.h:32
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
short WCHAR
Definition: pedump.c:58
wcscpy
wchar_t const *const size_t const buffer_size
Definition: stat.cpp:95
DWORD Type
Definition: winevt.h:142
LPCWSTR StringVal
Definition: winevt.h:111
Definition: undname.c:54
Definition: http.c:7783
Definition: fci.c:123
Definition: dhcpd.h:248
const uint16_t * LPCWSTR
Definition: typedefs.h:57
uint16_t * LPWSTR
Definition: typedefs.h:56
#define WINAPI
Definition: msvc.h:6
DWORD(WINAPI * EVT_SUBSCRIBE_CALLBACK)(EVT_SUBSCRIBE_NOTIFY_ACTION Action, PVOID UserContext, EVT_HANDLE Event)
Definition: winevt.h:145
enum _EVT_CHANNEL_CONFIG_PROPERTY_ID EVT_CHANNEL_CONFIG_PROPERTY_ID
@ EvtChannelLoggingConfigLogFilePath
Definition: winevt.h:41
struct _EVT_VARIANT EVT_VARIANT
enum _EVT_LOGIN_CLASS EVT_LOGIN_CLASS
@ EvtVarTypeString
Definition: winevt.h:67