1999-01-03 13:48:29 +01:00
|
|
|
/*
|
|
|
|
* Win32 advapi functions
|
|
|
|
*
|
2003-11-11 22:59:15 +01:00
|
|
|
* Copyright 1995 Sven Verdoolaege
|
|
|
|
* Copyright 1998 Juergen Schmied
|
|
|
|
* Copyright 2003 Mike Hearn
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
1999-01-03 13:48:29 +01:00
|
|
|
#include "winerror.h"
|
2003-01-21 00:23:12 +01:00
|
|
|
#include "winternl.h"
|
2005-05-11 15:00:18 +02:00
|
|
|
#include "wmistr.h"
|
|
|
|
#include "evntrace.h"
|
1999-01-03 13:48:29 +01:00
|
|
|
|
2009-10-27 09:33:55 +01:00
|
|
|
#include "wine/unicode.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
|
2003-11-11 22:59:15 +01:00
|
|
|
WINE_DECLARE_DEBUG_CHANNEL(eventlog);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
2009-10-27 09:33:55 +01:00
|
|
|
static inline LPWSTR SERV_dup( LPCSTR str )
|
|
|
|
{
|
|
|
|
UINT len;
|
|
|
|
LPWSTR wstr;
|
|
|
|
|
|
|
|
if( !str )
|
|
|
|
return NULL;
|
|
|
|
len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
|
|
|
|
wstr = HeapAlloc( GetProcessHeap(), 0, len*sizeof (WCHAR) );
|
|
|
|
MultiByteToWideChar( CP_ACP, 0, str, -1, wstr, len );
|
|
|
|
return wstr;
|
|
|
|
}
|
|
|
|
|
1999-01-03 13:48:29 +01:00
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* BackupEventLogA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Saves the event log to a backup file.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog [I] Handle to event log to backup.
|
|
|
|
* lpBackupFileName [I] Name of the backup file.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero. File lpBackupFileName will contain the contents of
|
|
|
|
* hEvenLog.
|
|
|
|
* Failure: zero.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI BackupEventLogA( HANDLE hEventLog, LPCSTR lpBackupFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-10-30 09:51:15 +01:00
|
|
|
LPWSTR backupW;
|
|
|
|
BOOL ret;
|
|
|
|
|
|
|
|
backupW = SERV_dup(lpBackupFileName);
|
|
|
|
ret = BackupEventLogW(hEventLog, backupW);
|
|
|
|
HeapFree(GetProcessHeap(), 0, backupW);
|
|
|
|
|
|
|
|
return ret;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
1999-01-28 14:46:25 +01:00
|
|
|
|
1999-01-03 13:48:29 +01:00
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* BackupEventLogW [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See BackupEventLogA.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI BackupEventLogW( HANDLE hEventLog, LPCWSTR lpBackupFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-10-30 09:51:15 +01:00
|
|
|
FIXME("(%p,%s) stub\n", hEventLog, debugstr_w(lpBackupFileName));
|
|
|
|
|
|
|
|
if (!lpBackupFileName)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!hEventLog)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_HANDLE);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GetFileAttributesW(lpBackupFileName) != INVALID_FILE_ATTRIBUTES)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_ALREADY_EXISTS);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* ClearEventLogA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
2009-11-04 08:00:58 +01:00
|
|
|
* Clears the event log and optionally saves the log to a backup file.
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEvenLog [I] Handle to event log to clear.
|
|
|
|
* lpBackupFileName [I] Name of the backup file.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero. if lpBackupFileName != NULL, lpBackupFileName will
|
|
|
|
* contain the contents of hEvenLog and the log will be cleared.
|
|
|
|
* Failure: zero. Fails if the event log is empty or if lpBackupFileName
|
|
|
|
* exists.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI ClearEventLogA( HANDLE hEventLog, LPCSTR lpBackupFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-11-04 08:00:58 +01:00
|
|
|
LPWSTR backupW;
|
|
|
|
BOOL ret;
|
|
|
|
|
|
|
|
backupW = SERV_dup(lpBackupFileName);
|
|
|
|
ret = ClearEventLogW(hEventLog, backupW);
|
|
|
|
HeapFree(GetProcessHeap(), 0, backupW);
|
|
|
|
|
|
|
|
return ret;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* ClearEventLogW [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See ClearEventLogA.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI ClearEventLogW( HANDLE hEventLog, LPCWSTR lpBackupFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-11-04 08:00:58 +01:00
|
|
|
FIXME("(%p,%s) stub\n", hEventLog, debugstr_w(lpBackupFileName));
|
|
|
|
|
|
|
|
if (!hEventLog)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_HANDLE);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* CloseEventLog [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Closes a read handle to the event log.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog [I/O] Handle of the event log to close.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero
|
|
|
|
* Failure: zero
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI CloseEventLog( HANDLE hEventLog )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-10-27 10:37:07 +01:00
|
|
|
FIXME("(%p) stub\n", hEventLog);
|
|
|
|
|
|
|
|
if (!hEventLog)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_HANDLE);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
2009-10-11 21:01:36 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* ControlTraceW [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* Control a givel event trace session
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
ULONG WINAPI ControlTraceW( TRACEHANDLE hSession, LPCWSTR SessionName, PEVENT_TRACE_PROPERTIES Properties, ULONG control )
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s, %p, %d) stub\n", wine_dbgstr_longlong(hSession), debugstr_w(SessionName), Properties, control);
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* ControlTraceA [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* See ControlTraceW.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
ULONG WINAPI ControlTraceA( TRACEHANDLE hSession, LPCSTR SessionName, PEVENT_TRACE_PROPERTIES Properties, ULONG control )
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s, %p, %d) stub\n", wine_dbgstr_longlong(hSession), debugstr_a(SessionName), Properties, control);
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
1999-01-03 13:48:29 +01:00
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* DeregisterEventSource [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Closes a write handle to an event log
|
1999-01-03 13:48:29 +01:00
|
|
|
*
|
|
|
|
* PARAMS
|
2004-07-13 01:32:10 +02:00
|
|
|
* hEventLog [I/O] Handle of the event log.
|
1999-01-03 13:48:29 +01:00
|
|
|
*
|
2004-07-13 01:32:10 +02:00
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero
|
|
|
|
* Failure: zero
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI DeregisterEventSource( HANDLE hEventLog )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2005-03-23 14:09:27 +01:00
|
|
|
FIXME("(%p) stub\n", hEventLog);
|
1999-01-03 13:48:29 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2009-10-11 20:02:13 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* EnableTrace [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
ULONG WINAPI EnableTrace( ULONG enable, ULONG flag, ULONG level, LPCGUID guid, TRACEHANDLE hSession )
|
|
|
|
{
|
|
|
|
FIXME("(%d, 0x%x, %d, %s, %s): stub\n", enable, flag, level,
|
|
|
|
debugstr_guid(guid), wine_dbgstr_longlong(hSession));
|
|
|
|
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2009-10-28 10:07:18 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* GetEventLogInformation [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* Retrieve some information about an event log.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog [I] Handle to an open event log.
|
|
|
|
* dwInfoLevel [I] Level of information (only EVENTLOG_FULL_INFO)
|
|
|
|
* lpBuffer [I/O] The buffer for the returned information
|
|
|
|
* cbBufSize [I] The size of the buffer
|
|
|
|
* pcbBytesNeeded [O] The needed bytes to hold the information
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: TRUE. lpBuffer will hold the information and pcbBytesNeeded shows
|
|
|
|
* the needed buffer size.
|
|
|
|
* Failure: FALSE.
|
|
|
|
*/
|
|
|
|
BOOL WINAPI GetEventLogInformation( HANDLE hEventLog, DWORD dwInfoLevel, LPVOID lpBuffer, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
|
|
|
|
{
|
|
|
|
EVENTLOG_FULL_INFORMATION *efi;
|
|
|
|
|
|
|
|
FIXME("(%p, %d, %p, %d, %p) stub\n", hEventLog, dwInfoLevel, lpBuffer, cbBufSize, pcbBytesNeeded);
|
|
|
|
|
|
|
|
if (dwInfoLevel != EVENTLOG_FULL_INFO)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_LEVEL);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!hEventLog)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_HANDLE);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!lpBuffer || !pcbBytesNeeded)
|
|
|
|
{
|
|
|
|
/* FIXME: This will be handled properly when eventlog is moved
|
|
|
|
* to a higher level
|
|
|
|
*/
|
|
|
|
SetLastError(RPC_X_NULL_REF_POINTER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
*pcbBytesNeeded = sizeof(EVENTLOG_FULL_INFORMATION);
|
|
|
|
if (cbBufSize < sizeof(EVENTLOG_FULL_INFORMATION))
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Pretend the log is not full */
|
|
|
|
efi = (EVENTLOG_FULL_INFORMATION *)lpBuffer;
|
|
|
|
efi->dwFull = 0;
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
1999-01-03 13:48:29 +01:00
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* GetNumberOfEventLogRecords [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2004-07-13 01:32:10 +02:00
|
|
|
* Retrieves the number of records in an event log.
|
|
|
|
*
|
1999-01-28 14:46:25 +01:00
|
|
|
* PARAMS
|
2004-07-13 01:32:10 +02:00
|
|
|
* hEventLog [I] Handle to an open event log.
|
|
|
|
* NumberOfRecords [O] Number of records in the log.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero. NumberOfRecords will contain the number of records in
|
|
|
|
* the log.
|
|
|
|
* Failure: zero
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI GetNumberOfEventLogRecords( HANDLE hEventLog, PDWORD NumberOfRecords )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2005-03-23 14:09:27 +01:00
|
|
|
FIXME("(%p,%p) stub\n", hEventLog, NumberOfRecords);
|
|
|
|
|
2009-10-28 19:37:06 +01:00
|
|
|
if (!NumberOfRecords)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!hEventLog)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_HANDLE);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2005-03-23 14:09:27 +01:00
|
|
|
*NumberOfRecords = 0;
|
|
|
|
|
|
|
|
return TRUE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* GetOldestEventLogRecord [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2004-07-13 01:32:10 +02:00
|
|
|
* Retrieves the absolute record number of the oldest record in an even log.
|
|
|
|
*
|
1999-01-28 14:46:25 +01:00
|
|
|
* PARAMS
|
2004-07-13 01:32:10 +02:00
|
|
|
* hEventLog [I] Handle to an open event log.
|
|
|
|
* OldestRecord [O] Absolute record number of the oldest record.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero. OldestRecord contains the record number of the oldest
|
|
|
|
* record in the log.
|
|
|
|
* Failure: zero
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI GetOldestEventLogRecord( HANDLE hEventLog, PDWORD OldestRecord )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2005-03-23 14:09:27 +01:00
|
|
|
FIXME("(%p,%p) stub\n", hEventLog, OldestRecord);
|
|
|
|
|
2009-10-29 09:25:07 +01:00
|
|
|
if (!OldestRecord)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!hEventLog)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_HANDLE);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2005-03-23 14:09:27 +01:00
|
|
|
*OldestRecord = 0;
|
|
|
|
|
|
|
|
return TRUE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* NotifyChangeEventLog [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2004-07-13 01:32:10 +02:00
|
|
|
* Enables an application to receive notification when an event is written
|
|
|
|
* to an event log.
|
|
|
|
*
|
1999-01-28 14:46:25 +01:00
|
|
|
* PARAMS
|
2004-07-13 01:32:10 +02:00
|
|
|
* hEventLog [I] Handle to an event log.
|
|
|
|
* hEvent [I] Handle to a manual-reset event object.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero
|
|
|
|
* Failure: zero
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI NotifyChangeEventLog( HANDLE hEventLog, HANDLE hEvent )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2005-03-23 14:09:27 +01:00
|
|
|
FIXME("(%p,%p) stub\n", hEventLog, hEvent);
|
1999-01-03 13:48:29 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* OpenBackupEventLogA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Opens a handle to a backup event log.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpUNCServerName [I] Universal Naming Convention name of the server on which
|
|
|
|
* this will be performed.
|
|
|
|
* lpFileName [I] Specifies the name of the backup file.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: Handle to the backup event log.
|
|
|
|
* Failure: NULL
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
HANDLE WINAPI OpenBackupEventLogA( LPCSTR lpUNCServerName, LPCSTR lpFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-11-02 10:31:17 +01:00
|
|
|
LPWSTR uncnameW, filenameW;
|
|
|
|
HANDLE handle;
|
|
|
|
|
|
|
|
uncnameW = SERV_dup(lpUNCServerName);
|
|
|
|
filenameW = SERV_dup(lpFileName);
|
|
|
|
handle = OpenBackupEventLogW(uncnameW, filenameW);
|
|
|
|
HeapFree(GetProcessHeap(), 0, uncnameW);
|
|
|
|
HeapFree(GetProcessHeap(), 0, filenameW);
|
|
|
|
|
|
|
|
return handle;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* OpenBackupEventLogW [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See OpenBackupEventLogA.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
HANDLE WINAPI OpenBackupEventLogW( LPCWSTR lpUNCServerName, LPCWSTR lpFileName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-11-02 10:31:17 +01:00
|
|
|
FIXME("(%s,%s) stub\n", debugstr_w(lpUNCServerName), debugstr_w(lpFileName));
|
|
|
|
|
|
|
|
if (!lpFileName)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (lpUNCServerName && lpUNCServerName[0])
|
|
|
|
{
|
|
|
|
FIXME("Remote server not supported\n");
|
|
|
|
SetLastError(RPC_S_SERVER_UNAVAILABLE);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GetFileAttributesW(lpFileName) == INVALID_FILE_ATTRIBUTES)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (HANDLE)0xcafe4242;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* OpenEventLogA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Opens a handle to the specified event log.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpUNCServerName [I] UNC name of the server on which the event log is
|
|
|
|
* opened.
|
|
|
|
* lpSourceName [I] Name of the log.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: Handle to an event log.
|
|
|
|
* Failure: NULL
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
HANDLE WINAPI OpenEventLogA( LPCSTR uncname, LPCSTR source )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-10-27 09:33:55 +01:00
|
|
|
LPWSTR uncnameW, sourceW;
|
|
|
|
HANDLE handle;
|
|
|
|
|
|
|
|
uncnameW = SERV_dup(uncname);
|
|
|
|
sourceW = SERV_dup(source);
|
|
|
|
handle = OpenEventLogW(uncnameW, sourceW);
|
|
|
|
HeapFree(GetProcessHeap(), 0, uncnameW);
|
|
|
|
HeapFree(GetProcessHeap(), 0, sourceW);
|
|
|
|
|
|
|
|
return handle;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* OpenEventLogW [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See OpenEventLogA.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
HANDLE WINAPI OpenEventLogW( LPCWSTR uncname, LPCWSTR source )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2009-10-27 09:33:55 +01:00
|
|
|
FIXME("(%s,%s) stub\n", debugstr_w(uncname), debugstr_w(source));
|
|
|
|
|
|
|
|
if (!source)
|
|
|
|
{
|
|
|
|
SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2009-10-27 10:27:28 +01:00
|
|
|
if (uncname && uncname[0])
|
2009-10-27 09:33:55 +01:00
|
|
|
{
|
|
|
|
FIXME("Remote server not supported\n");
|
|
|
|
SetLastError(RPC_S_SERVER_UNAVAILABLE);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (HANDLE)0xcafe4242;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
2009-10-11 17:19:29 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QueryAllTracesW [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* Query informations for started event trace sessions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
ULONG WINAPI QueryAllTracesW( PEVENT_TRACE_PROPERTIES * parray, ULONG arraycount, PULONG psessioncount )
|
|
|
|
{
|
|
|
|
FIXME("(%p, %d, %p) stub\n", parray, arraycount, psessioncount);
|
|
|
|
|
|
|
|
if (psessioncount) *psessioncount = 0;
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* QueryAllTracesA [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* See QueryAllTracesW.
|
|
|
|
*/
|
|
|
|
ULONG WINAPI QueryAllTracesA( PEVENT_TRACE_PROPERTIES * parray, ULONG arraycount, PULONG psessioncount )
|
|
|
|
{
|
|
|
|
FIXME("(%p, %d, %p) stub\n", parray, arraycount, psessioncount);
|
|
|
|
|
|
|
|
if (psessioncount) *psessioncount = 0;
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
1999-01-03 13:48:29 +01:00
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* ReadEventLogA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Reads a whole number of entries from an event log.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog [I] Handle of the event log to read.
|
|
|
|
* dwReadFlags [I] see MSDN doc.
|
|
|
|
* dwRecordOffset [I] Log-entry record number to start at.
|
|
|
|
* lpBuffer [O] Buffer for the data read.
|
|
|
|
* nNumberOfBytesToRead [I] Size of lpBuffer.
|
|
|
|
* pnBytesRead [O] Receives number of bytes read.
|
|
|
|
* pnMinNumberOfBytesNeeded [O] Receives number of bytes required for the
|
|
|
|
* next log entry.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero
|
|
|
|
* Failure: zero
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI ReadEventLogA( HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
|
1999-01-03 13:48:29 +01:00
|
|
|
LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
|
|
|
|
{
|
2006-10-03 15:48:41 +02:00
|
|
|
FIXME("(%p,0x%08x,0x%08x,%p,0x%08x,%p,%p) stub\n", hEventLog, dwReadFlags,
|
2005-03-23 14:09:27 +01:00
|
|
|
dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
|
|
return FALSE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* ReadEventLogW [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See ReadEventLogA.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI ReadEventLogW( HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOffset,
|
|
|
|
LPVOID lpBuffer, DWORD nNumberOfBytesToRead, DWORD *pnBytesRead, DWORD *pnMinNumberOfBytesNeeded )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2006-10-03 15:48:41 +02:00
|
|
|
FIXME("(%p,0x%08x,0x%08x,%p,0x%08x,%p,%p) stub\n", hEventLog, dwReadFlags,
|
2005-03-23 14:09:27 +01:00
|
|
|
dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
|
|
|
|
return FALSE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* RegisterEventSourceA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Returns a registered handle to an event log.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpUNCServerName [I] UNC name of the source server.
|
|
|
|
* lpSourceName [I] Specifies the name of the event source to retrieve.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: Handle to the event log.
|
|
|
|
* Failure: NULL. Returns ERROR_INVALID_HANDLE if lpSourceName specifies the
|
|
|
|
* Security event log.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HANDLE WINAPI RegisterEventSourceA( LPCSTR lpUNCServerName, LPCSTR lpSourceName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2003-01-21 00:23:12 +01:00
|
|
|
UNICODE_STRING lpUNCServerNameW;
|
|
|
|
UNICODE_STRING lpSourceNameW;
|
|
|
|
HANDLE ret;
|
2005-03-23 14:09:27 +01:00
|
|
|
|
|
|
|
FIXME("(%s,%s): stub\n", debugstr_a(lpUNCServerName), debugstr_a(lpSourceName));
|
|
|
|
|
2003-01-21 00:23:12 +01:00
|
|
|
RtlCreateUnicodeStringFromAsciiz(&lpUNCServerNameW, lpUNCServerName);
|
|
|
|
RtlCreateUnicodeStringFromAsciiz(&lpSourceNameW, lpSourceName);
|
|
|
|
ret = RegisterEventSourceW(lpUNCServerNameW.Buffer,lpSourceNameW.Buffer);
|
|
|
|
RtlFreeUnicodeString (&lpUNCServerNameW);
|
|
|
|
RtlFreeUnicodeString (&lpSourceNameW);
|
1999-01-03 13:48:29 +01:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* RegisterEventSourceW [ADVAPI32.@]
|
1999-01-03 13:48:29 +01:00
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See RegisterEventSourceA.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
HANDLE WINAPI RegisterEventSourceW( LPCWSTR lpUNCServerName, LPCWSTR lpSourceName )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2005-03-23 14:09:27 +01:00
|
|
|
FIXME("(%s,%s): stub\n", debugstr_w(lpUNCServerName), debugstr_w(lpSourceName));
|
|
|
|
return (HANDLE)0xcafe4242;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* ReportEventA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Writes an entry at the end of an event log.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hEventLog [I] Handle of an event log.
|
|
|
|
* wType [I] See MSDN doc.
|
|
|
|
* wCategory [I] Event category.
|
|
|
|
* dwEventID [I] Event identifier.
|
|
|
|
* lpUserSid [I] Current user's security identifier.
|
|
|
|
* wNumStrings [I] Number of insert strings in lpStrings.
|
|
|
|
* dwDataSize [I] Size of event-specific raw data to write.
|
|
|
|
* lpStrings [I] Buffer containing an array of string to be merged.
|
|
|
|
* lpRawData [I] Buffer containing the binary data.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: nonzero. Entry was written to the log.
|
|
|
|
* Failure: zero.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* The ReportEvent function adds the time, the entry's length, and the
|
|
|
|
* offsets before storing the entry in the log. If lpUserSid != NULL, the
|
|
|
|
* username is also logged.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI ReportEventA ( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID,
|
1999-01-03 13:48:29 +01:00
|
|
|
PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCSTR *lpStrings, LPVOID lpRawData)
|
|
|
|
{
|
2006-08-25 23:14:38 +02:00
|
|
|
LPWSTR *wideStrArray;
|
2003-11-11 22:59:15 +01:00
|
|
|
UNICODE_STRING str;
|
|
|
|
int i;
|
|
|
|
BOOL ret;
|
|
|
|
|
2006-10-03 15:48:41 +02:00
|
|
|
FIXME("(%p,0x%04x,0x%04x,0x%08x,%p,0x%04x,0x%08x,%p,%p): stub\n", hEventLog,
|
2005-03-23 14:09:27 +01:00
|
|
|
wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, lpStrings, lpRawData);
|
|
|
|
|
2003-11-11 22:59:15 +01:00
|
|
|
if (wNumStrings == 0) return TRUE;
|
|
|
|
if (!lpStrings) return TRUE;
|
|
|
|
|
2006-08-25 23:14:38 +02:00
|
|
|
wideStrArray = HeapAlloc(GetProcessHeap(), 0, sizeof(LPWSTR) * wNumStrings);
|
2003-11-11 22:59:15 +01:00
|
|
|
for (i = 0; i < wNumStrings; i++)
|
|
|
|
{
|
|
|
|
RtlCreateUnicodeStringFromAsciiz(&str, lpStrings[i]);
|
|
|
|
wideStrArray[i] = str.Buffer;
|
|
|
|
}
|
|
|
|
ret = ReportEventW(hEventLog, wType, wCategory, dwEventID, lpUserSid,
|
2006-08-25 23:14:38 +02:00
|
|
|
wNumStrings, dwDataSize, (LPCWSTR *)wideStrArray, lpRawData);
|
2003-11-11 22:59:15 +01:00
|
|
|
for (i = 0; i < wNumStrings; i++)
|
|
|
|
{
|
2006-08-25 23:14:38 +02:00
|
|
|
HeapFree( GetProcessHeap(), 0, wideStrArray[i] );
|
2003-11-11 22:59:15 +01:00
|
|
|
}
|
|
|
|
HeapFree(GetProcessHeap(), 0, wideStrArray);
|
|
|
|
return ret;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* ReportEventW [ADVAPI32.@]
|
1999-01-28 14:46:25 +01:00
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See ReportEventA.
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2005-03-23 14:09:27 +01:00
|
|
|
BOOL WINAPI ReportEventW( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID,
|
|
|
|
PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCWSTR *lpStrings, LPVOID lpRawData )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2003-11-11 22:59:15 +01:00
|
|
|
int i;
|
|
|
|
|
2006-10-03 15:48:41 +02:00
|
|
|
FIXME("(%p,0x%04x,0x%04x,0x%08x,%p,0x%04x,0x%08x,%p,%p): stub\n", hEventLog,
|
2005-03-23 14:09:27 +01:00
|
|
|
wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, lpStrings, lpRawData);
|
|
|
|
|
2003-11-11 22:59:15 +01:00
|
|
|
/* partial stub */
|
|
|
|
|
|
|
|
if (wNumStrings == 0) return TRUE;
|
|
|
|
if (!lpStrings) return TRUE;
|
|
|
|
|
|
|
|
for (i = 0; i < wNumStrings; i++)
|
|
|
|
{
|
|
|
|
switch (wType)
|
|
|
|
{
|
|
|
|
case EVENTLOG_SUCCESS:
|
|
|
|
TRACE_(eventlog)("%s\n", debugstr_w(lpStrings[i]));
|
|
|
|
break;
|
|
|
|
case EVENTLOG_ERROR_TYPE:
|
|
|
|
ERR_(eventlog)("%s\n", debugstr_w(lpStrings[i]));
|
|
|
|
break;
|
|
|
|
case EVENTLOG_WARNING_TYPE:
|
|
|
|
WARN_(eventlog)("%s\n", debugstr_w(lpStrings[i]));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
TRACE_(eventlog)("%s\n", debugstr_w(lpStrings[i]));
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return TRUE;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
2005-05-11 15:00:18 +02:00
|
|
|
|
2005-05-16 10:51:19 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* RegisterTraceGuidsW [ADVAPI32.@]
|
|
|
|
*
|
2005-11-12 20:12:03 +01:00
|
|
|
* Register an event trace provider and the event trace classes that it uses
|
|
|
|
* to generate events.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* RequestAddress [I] ControlCallback function
|
|
|
|
* RequestContext [I] Optional provider-defined context
|
|
|
|
* ControlGuid [I] GUID of the registering provider
|
|
|
|
* GuidCount [I] Number of elements in the TraceGuidReg array
|
|
|
|
* TraceGuidReg [I/O] Array of TRACE_GUID_REGISTRATION structures
|
|
|
|
* MofImagePath [I] not supported, set to NULL
|
|
|
|
* MofResourceNmae [I] not supported, set to NULL
|
|
|
|
* RegistrationHandle [O] Provider's registration handle
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: ERROR_SUCCESS
|
|
|
|
* Failure: System error code
|
|
|
|
*
|
|
|
|
* FIXME
|
|
|
|
* Stub.
|
2005-05-16 10:51:19 +02:00
|
|
|
*/
|
2005-05-11 15:00:18 +02:00
|
|
|
ULONG WINAPI RegisterTraceGuidsW( WMIDPREQUEST RequestAddress,
|
|
|
|
PVOID RequestContext, LPCGUID ControlGuid, ULONG GuidCount,
|
|
|
|
PTRACE_GUID_REGISTRATION TraceGuidReg, LPCWSTR MofImagePath,
|
|
|
|
LPCWSTR MofResourceName, PTRACEHANDLE RegistrationHandle )
|
|
|
|
{
|
2006-10-03 15:48:41 +02:00
|
|
|
FIXME("%p %p %p %u %p %s %s %p\n", RequestAddress, RequestContext,
|
2005-05-11 15:00:18 +02:00
|
|
|
ControlGuid, GuidCount, TraceGuidReg, debugstr_w(MofImagePath),
|
|
|
|
debugstr_w(MofResourceName), RegistrationHandle);
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2005-05-16 10:51:19 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* RegisterTraceGuidsA [ADVAPI32.@]
|
|
|
|
*
|
2005-11-12 20:12:03 +01:00
|
|
|
* See RegisterTraceGuidsW.
|
|
|
|
*
|
|
|
|
* FIXME
|
|
|
|
* Stub.
|
2005-05-16 10:51:19 +02:00
|
|
|
*/
|
2005-05-11 15:00:18 +02:00
|
|
|
ULONG WINAPI RegisterTraceGuidsA( WMIDPREQUEST RequestAddress,
|
|
|
|
PVOID RequestContext, LPCGUID ControlGuid, ULONG GuidCount,
|
|
|
|
PTRACE_GUID_REGISTRATION TraceGuidReg, LPCSTR MofImagePath,
|
|
|
|
LPCSTR MofResourceName, PTRACEHANDLE RegistrationHandle )
|
|
|
|
{
|
2006-10-03 15:48:41 +02:00
|
|
|
FIXME("%p %p %p %u %p %s %s %p\n", RequestAddress, RequestContext,
|
2005-05-11 15:00:18 +02:00
|
|
|
ControlGuid, GuidCount, TraceGuidReg, debugstr_a(MofImagePath),
|
|
|
|
debugstr_a(MofResourceName), RegistrationHandle);
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
2008-12-05 19:02:05 +01:00
|
|
|
|
2009-10-11 17:38:21 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* StartTraceW [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* Register and start an event trace session
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
ULONG WINAPI StartTraceW( PTRACEHANDLE pSessionHandle, LPCWSTR SessionName, PEVENT_TRACE_PROPERTIES Properties )
|
|
|
|
{
|
|
|
|
FIXME("(%p, %s, %p) stub\n", pSessionHandle, debugstr_w(SessionName), Properties);
|
|
|
|
if (pSessionHandle) *pSessionHandle = 0xcafe4242;
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* StartTraceA [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* See StartTraceW.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
ULONG WINAPI StartTraceA( PTRACEHANDLE pSessionHandle, LPCSTR SessionName, PEVENT_TRACE_PROPERTIES Properties )
|
|
|
|
{
|
|
|
|
FIXME("(%p, %s, %p) stub\n", pSessionHandle, debugstr_a(SessionName), Properties);
|
|
|
|
if (pSessionHandle) *pSessionHandle = 0xcafe4242;
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2009-03-05 16:12:47 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* TraceEvent [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
ULONG WINAPI TraceEvent( TRACEHANDLE SessionHandle, PEVENT_TRACE_HEADER EventTrace )
|
|
|
|
{
|
|
|
|
FIXME("%s %p\n", wine_dbgstr_longlong(SessionHandle), EventTrace);
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2008-12-05 19:02:05 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* UnregisterTraceGuids [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* See RegisterTraceGuids
|
|
|
|
*
|
|
|
|
* FIXME
|
|
|
|
* Stub.
|
|
|
|
*/
|
|
|
|
ULONG WINAPI UnregisterTraceGuids( TRACEHANDLE RegistrationHandle )
|
|
|
|
{
|
|
|
|
FIXME("%s: stub\n", wine_dbgstr_longlong(RegistrationHandle));
|
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|