Release 1.5.29.
[wine] / dlls / wevtapi / main.c
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 "config.h"
21
22 #include <stdarg.h>
23
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winevt.h"
27 #include "wine/debug.h"
28
29 WINE_DEFAULT_DEBUG_CHANNEL(wevtapi);
30
31 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
32 {
33     TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
34
35     switch (fdwReason)
36     {
37         case DLL_WINE_PREATTACH:
38             return FALSE;    /* prefer native version */
39         case DLL_PROCESS_ATTACH:
40             DisableThreadLibraryCalls(hinstDLL);
41             break;
42     }
43
44     return TRUE;
45 }
46
47 BOOL WINAPI EvtGetChannelConfigProperty(EVT_HANDLE ChannelConfig,
48                                         EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
49                                         DWORD Flags,
50                                         DWORD PropertyValueBufferSize,
51                                         PEVT_VARIANT PropertyValueBuffer,
52                                         DWORD *PropertyValueBufferUsed)
53 {
54     FIXME("(%p %i %u %u %p %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValueBufferSize,
55           PropertyValueBuffer, PropertyValueBufferUsed);
56     return FALSE;
57 }
58
59 BOOL WINAPI EvtSetChannelConfigProperty(EVT_HANDLE ChannelConfig,
60                                         EVT_CHANNEL_CONFIG_PROPERTY_ID PropertyId,
61                                         DWORD Flags,
62                                         PEVT_VARIANT PropertyValue)
63 {
64     FIXME("(%p %i %u %p) stub\n", ChannelConfig, PropertyId, Flags, PropertyValue);
65     return FALSE;
66 }
67
68 EVT_HANDLE WINAPI EvtSubscribe(EVT_HANDLE Session, HANDLE SignalEvent, LPCWSTR ChannelPath,
69                                LPCWSTR Query, EVT_HANDLE Bookmark, PVOID context,
70                                EVT_SUBSCRIBE_CALLBACK Callback, DWORD Flags)
71 {
72     FIXME("(%p %p %s %s %p %p %p %u) stub\n", Session, SignalEvent, debugstr_w(ChannelPath),
73           debugstr_w(Query), Bookmark, context, Callback, Flags);
74     return NULL;
75 }
76
77 EVT_HANDLE WINAPI EvtOpenChannelConfig(EVT_HANDLE Session, LPCWSTR ChannelPath, DWORD Flags)
78 {
79     FIXME("(%p %s %u) stub\n", Session, debugstr_w(ChannelPath), Flags);
80     return NULL;
81 }