mirror of
https://github.com/reactos/reactos.git
synced 2024-09-07 03:11:07 +00:00
- Remove WINE_DECLARE_DEBUG_CHANNEL.
- Call ElfrReportEventW with correct parameters. - In Prep for implementing EventLog Api's. svn path=/trunk/; revision=37273
This commit is contained in:
parent
28e480b966
commit
021dbda887
|
@ -25,7 +25,6 @@
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
|
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
|
||||||
WINE_DECLARE_DEBUG_CHANNEL(eventlog);
|
|
||||||
|
|
||||||
static RPC_UNICODE_STRING EmptyString = { 0, 0, L"" };
|
static RPC_UNICODE_STRING EmptyString = { 0, 0, L"" };
|
||||||
|
|
||||||
|
@ -903,9 +902,9 @@ ReportEventW(IN HANDLE hEventLog,
|
||||||
IN LPCWSTR *lpStrings,
|
IN LPCWSTR *lpStrings,
|
||||||
IN LPVOID lpRawData)
|
IN LPVOID lpRawData)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
UNICODE_STRING *Strings;
|
UNICODE_STRING *Strings;
|
||||||
|
UNICODE_STRING ComputerName;
|
||||||
WORD i;
|
WORD i;
|
||||||
|
|
||||||
TRACE("%p, %u, %u, %lu, %p, %u, %lu, %p, %p\n",
|
TRACE("%p, %u, %u, %lu, %p, %u, %lu, %p, %p\n",
|
||||||
|
@ -924,6 +923,9 @@ ReportEventW(IN HANDLE hEventLog,
|
||||||
for (i = 0; i < wNumStrings; i++)
|
for (i = 0; i < wNumStrings; i++)
|
||||||
RtlInitUnicodeString(&Strings[i], lpStrings[i]);
|
RtlInitUnicodeString(&Strings[i], lpStrings[i]);
|
||||||
|
|
||||||
|
/*FIXME: ComputerName */
|
||||||
|
RtlInitEmptyUnicodeString(&ComputerName, NULL, 0);
|
||||||
|
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
{
|
{
|
||||||
Status = ElfrReportEventW(hEventLog,
|
Status = ElfrReportEventW(hEventLog,
|
||||||
|
@ -933,9 +935,9 @@ ReportEventW(IN HANDLE hEventLog,
|
||||||
dwEventID,
|
dwEventID,
|
||||||
wNumStrings,
|
wNumStrings,
|
||||||
dwDataSize,
|
dwDataSize,
|
||||||
L"", /* FIXME: ComputerName */
|
(PRPC_UNICODE_STRING) &ComputerName,
|
||||||
lpUserSid,
|
lpUserSid,
|
||||||
(LPWSTR *)lpStrings, /* FIXME: should be Strings */
|
(PRPC_UNICODE_STRING*) &Strings,
|
||||||
lpRawData,
|
lpRawData,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -956,43 +958,4 @@ ReportEventW(IN HANDLE hEventLog,
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
|
||||||
int i;
|
|
||||||
|
|
||||||
/* partial stub */
|
|
||||||
|
|
||||||
if (wNumStrings == 0)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
if (lpStrings == NULL)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
for (i = 0; i < wNumStrings; i++)
|
|
||||||
{
|
|
||||||
switch (wType)
|
|
||||||
{
|
|
||||||
case EVENTLOG_SUCCESS:
|
|
||||||
TRACE_(eventlog)("Success: %S\n", lpStrings[i]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EVENTLOG_ERROR_TYPE:
|
|
||||||
ERR_(eventlog)("Error: %S\n", lpStrings[i]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EVENTLOG_WARNING_TYPE:
|
|
||||||
WARN_(eventlog)("Warning: %S\n", lpStrings[i]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EVENTLOG_INFORMATION_TYPE:
|
|
||||||
TRACE_(eventlog)("Info: %S\n", lpStrings[i]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
TRACE_(eventlog)("Type %hu: %S\n", wType, lpStrings[i]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue