Corrected WinMain.
[wine.git] / dlls / advapi32 / eventlog.c
blob830d07298d2059b824a9ed01bcc5a69401a4da26
1 /*
2 * Win32 advapi functions
4 * Copyright 1995 Sven Verdoolaege, 1998 Juergen Schmied
5 */
7 #include "winbase.h"
8 #include "windef.h"
9 #include "winerror.h"
10 #include "heap.h"
12 #include "debugtools.h"
14 DEFAULT_DEBUG_CHANNEL(advapi)
16 /******************************************************************************
17 * BackupEventLogA [ADVAPI32.15]
19 BOOL WINAPI BackupEventLogA( HANDLE hEventLog, LPCSTR lpBackupFileName )
21 FIXME("stub\n");
22 return TRUE;
25 /******************************************************************************
26 * BackupEventLogW [ADVAPI32.16]
28 * PARAMS
29 * hEventLog []
30 * lpBackupFileName []
32 BOOL WINAPI
33 BackupEventLogW( HANDLE hEventLog, LPCWSTR lpBackupFileName )
35 FIXME("stub\n");
36 return TRUE;
39 /******************************************************************************
40 * ClearEventLogA [ADVAPI32.19]
42 BOOL WINAPI ClearEventLogA ( HANDLE hEventLog, LPCSTR lpBackupFileName )
44 FIXME("stub\n");
45 return TRUE;
48 /******************************************************************************
49 * ClearEventLogW [ADVAPI32.20]
51 BOOL WINAPI ClearEventLogW ( HANDLE hEventLog, LPCWSTR lpBackupFileName )
53 FIXME("stub\n");
54 return TRUE;
57 /******************************************************************************
58 * CloseEventLog [ADVAPI32.21]
60 BOOL WINAPI CloseEventLog ( HANDLE hEventLog )
62 FIXME("stub\n");
63 return TRUE;
66 /******************************************************************************
67 * DeregisterEventSource [ADVAPI32.32]
68 * Closes a handle to the specified event log
70 * PARAMS
71 * hEventLog [I] Handle to event log
73 * RETURNS STD
75 BOOL WINAPI DeregisterEventSource( HANDLE hEventLog )
77 FIXME("(%d): stub\n",hEventLog);
78 return TRUE;
81 /******************************************************************************
82 * GetNumberOfEventLogRecords [ADVAPI32.49]
84 * PARAMS
85 * hEventLog []
86 * NumberOfRecords []
88 BOOL WINAPI
89 GetNumberOfEventLogRecords( HANDLE hEventLog, PDWORD NumberOfRecords )
91 FIXME("stub\n");
92 return TRUE;
95 /******************************************************************************
96 * GetOldestEventLogRecord [ADVAPI32.50]
98 * PARAMS
99 * hEventLog []
100 * OldestRecord []
102 BOOL WINAPI
103 GetOldestEventLogRecord( HANDLE hEventLog, PDWORD OldestRecord )
105 FIXME(":stub\n");
106 return TRUE;
109 /******************************************************************************
110 * NotifyChangeEventLog [ADVAPI32.98]
112 * PARAMS
113 * hEventLog []
114 * hEvent []
116 BOOL WINAPI NotifyChangeEventLog( HANDLE hEventLog, HANDLE hEvent )
118 FIXME("stub\n");
119 return TRUE;
122 /******************************************************************************
123 * OpenBackupEventLogA [ADVAPI32.105]
125 HANDLE WINAPI
126 OpenBackupEventLogA( LPCSTR lpUNCServerName, LPCSTR lpFileName )
128 FIXME("stub\n");
129 return TRUE;
132 /******************************************************************************
133 * OpenBackupEventLogW [ADVAPI32.106]
135 * PARAMS
136 * lpUNCServerName []
137 * lpFileName []
139 HANDLE WINAPI
140 OpenBackupEventLogW( LPCWSTR lpUNCServerName, LPCWSTR lpFileName )
142 FIXME("stub\n");
143 return TRUE;
146 /******************************************************************************
147 * OpenEventLogA [ADVAPI32.107]
149 HANDLE WINAPI OpenEventLogA(LPCSTR uncname,LPCSTR source)
151 FIXME("(%s,%s),stub!\n",uncname,source);
152 return 0xcafe4242;
155 /******************************************************************************
156 * OpenEventLogW [ADVAPI32.108]
158 * PARAMS
159 * uncname []
160 * source []
162 HANDLE WINAPI
163 OpenEventLogW( LPCWSTR uncname, LPCWSTR source )
165 FIXME("stub\n");
166 return TRUE;
169 /******************************************************************************
170 * ReadEventLogA [ADVAPI32.124]
172 BOOL WINAPI ReadEventLogA( HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
173 LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
175 FIXME("stub\n");
176 return TRUE;
179 /******************************************************************************
180 * ReadEventLogW [ADVAPI32.125]
182 * PARAMS
183 * hEventLog []
184 * dwReadFlags []
185 * dwRecordOffset []
186 * lpBuffer []
187 * nNumberOfBytesToRead []
188 * pnBytesRead []
189 * pnMinNumberOfBytesNeeded []
191 BOOL WINAPI
192 ReadEventLogW( HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
193 LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
194 DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
196 FIXME("stub\n");
197 return TRUE;
200 /******************************************************************************
201 * RegisterEventSourceA [ADVAPI32.174]
203 HANDLE WINAPI RegisterEventSourceA( LPCSTR lpUNCServerName, LPCSTR lpSourceName )
205 LPWSTR lpUNCServerNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpUNCServerName);
206 LPWSTR lpSourceNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpSourceName);
207 HANDLE ret = RegisterEventSourceW(lpUNCServerNameW,lpSourceNameW);
208 HeapFree(GetProcessHeap(),0,lpSourceNameW);
209 HeapFree(GetProcessHeap(),0,lpUNCServerNameW);
210 return ret;
213 /******************************************************************************
214 * RegisterEventSourceW [ADVAPI32.175]
215 * Returns a registered handle to an event log
217 * PARAMS
218 * lpUNCServerName [I] Server name for source
219 * lpSourceName [I] Source name for registered handle
221 * RETURNS
222 * Success: Handle
223 * Failure: NULL
225 HANDLE WINAPI
226 RegisterEventSourceW( LPCWSTR lpUNCServerName, LPCWSTR lpSourceName )
228 FIXME("(%s,%s): stub\n", debugstr_w(lpUNCServerName),
229 debugstr_w(lpSourceName));
230 return 1;
233 /******************************************************************************
234 * ReportEventA [ADVAPI32.178]
236 BOOL WINAPI ReportEventA ( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID,
237 PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCSTR *lpStrings, LPVOID lpRawData)
239 FIXME("stub\n");
240 return TRUE;
243 /******************************************************************************
244 * ReportEventW [ADVAPI32.179]
246 * PARAMS
247 * hEventLog []
248 * wType []
249 * wCategory []
250 * dwEventID []
251 * lpUserSid []
252 * wNumStrings []
253 * dwDataSize []
254 * lpStrings []
255 * lpRawData []
257 BOOL WINAPI
258 ReportEventW( HANDLE hEventLog, WORD wType, WORD wCategory,
259 DWORD dwEventID, PSID lpUserSid, WORD wNumStrings,
260 DWORD dwDataSize, LPCWSTR *lpStrings, LPVOID lpRawData )
262 FIXME("stub\n");
263 return TRUE;