advapi32: Add stubs for FlushTrace[AW].

This commit is contained in:
Paul Vriens 2010-09-06 14:44:17 +02:00 committed by Alexandre Julliard
parent dbb33085bf
commit 1042aa0145
3 changed files with 27 additions and 2 deletions

View File

@ -220,8 +220,8 @@
@ stdcall FileEncryptionStatusA(str ptr) @ stdcall FileEncryptionStatusA(str ptr)
@ stdcall FileEncryptionStatusW(wstr ptr) @ stdcall FileEncryptionStatusW(wstr ptr)
@ stdcall FindFirstFreeAce(ptr ptr) @ stdcall FindFirstFreeAce(ptr ptr)
# @ stub FlushTraceA @ stdcall FlushTraceA(int64 str ptr)
# @ stub FlushTraceW @ stdcall FlushTraceW(int64 wstr ptr)
# @ stub FreeEncryptedFileKeyInfo # @ stub FreeEncryptedFileKeyInfo
# @ stub FreeEncryptionCertificateHashList # @ stub FreeEncryptionCertificateHashList
# @ stub FreeInheritedFromArray # @ stub FreeInheritedFromArray

View File

@ -198,6 +198,23 @@ ULONG WINAPI ControlTraceA( TRACEHANDLE hSession, LPCSTR SessionName, PEVENT_TRA
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
/******************************************************************************
* FlushTraceA [ADVAPI32.@]
*/
ULONG WINAPI FlushTraceA ( TRACEHANDLE hSession, LPCSTR SessionName, PEVENT_TRACE_PROPERTIES Properties )
{
return ControlTraceA( hSession, SessionName, Properties, EVENT_TRACE_CONTROL_FLUSH );
}
/******************************************************************************
* FlushTraceW [ADVAPI32.@]
*/
ULONG WINAPI FlushTraceW ( TRACEHANDLE hSession, LPCWSTR SessionName, PEVENT_TRACE_PROPERTIES Properties )
{
return ControlTraceW( hSession, SessionName, Properties, EVENT_TRACE_CONTROL_FLUSH );
}
/****************************************************************************** /******************************************************************************
* DeregisterEventSource [ADVAPI32.@] * DeregisterEventSource [ADVAPI32.@]
* *

View File

@ -25,6 +25,11 @@
extern "C" { extern "C" {
#endif #endif
#define EVENT_TRACE_CONTROL_QUERY 0
#define EVENT_TRACE_CONTROL_STOP 1
#define EVENT_TRACE_CONTROL_UPDATE 2
#define EVENT_TRACE_CONTROL_FLUSH 3
typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE; typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE;
struct _EVENT_TRACE_LOGFILEA; struct _EVENT_TRACE_LOGFILEA;
@ -202,6 +207,9 @@ ULONG WINAPI ControlTraceA(TRACEHANDLE,LPCSTR,PEVENT_TRACE_PROPERTIES,ULONG);
ULONG WINAPI ControlTraceW(TRACEHANDLE,LPCWSTR,PEVENT_TRACE_PROPERTIES,ULONG); ULONG WINAPI ControlTraceW(TRACEHANDLE,LPCWSTR,PEVENT_TRACE_PROPERTIES,ULONG);
#define ControlTrace WINELIB_NAME_AW(ControlTrace) #define ControlTrace WINELIB_NAME_AW(ControlTrace)
ULONG WINAPI EnableTrace(ULONG,ULONG,ULONG,LPCGUID,TRACEHANDLE); ULONG WINAPI EnableTrace(ULONG,ULONG,ULONG,LPCGUID,TRACEHANDLE);
ULONG WINAPI FlushTraceA(TRACEHANDLE,LPCSTR,PEVENT_TRACE_PROPERTIES);
ULONG WINAPI FlushTraceW(TRACEHANDLE,LPCWSTR,PEVENT_TRACE_PROPERTIES);
#define FlushTrace WINELIB_NAME_AW(FlushTrace)
ULONG WINAPI QueryAllTracesA(PEVENT_TRACE_PROPERTIES*,ULONG,PULONG); ULONG WINAPI QueryAllTracesA(PEVENT_TRACE_PROPERTIES*,ULONG,PULONG);
ULONG WINAPI QueryAllTracesW(PEVENT_TRACE_PROPERTIES*,ULONG,PULONG); ULONG WINAPI QueryAllTracesW(PEVENT_TRACE_PROPERTIES*,ULONG,PULONG);
#define QueryAllTraces WINELIB_NAME_AW(QueryAllTraces) #define QueryAllTraces WINELIB_NAME_AW(QueryAllTraces)