From 4f7fc1b0512c239331fc1000d73ad6f93b2e1200 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Sun, 11 Oct 2009 17:19:29 +0200 Subject: [PATCH] advapi32: Add stubs for QueryAllTraces[A|W]. --- dlls/advapi32/advapi32.spec | 4 ++-- dlls/advapi32/eventlog.c | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index 4f3e69306e3..a61051e1f85 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -445,8 +445,8 @@ @ stdcall PrivilegedServiceAuditAlarmW(wstr wstr long ptr long) # @ stub ProcessIdleTasks # @ stub ProcessTrace -# @ stub QueryAllTracesA -# @ stub QueryAllTracesW +@ stdcall QueryAllTracesA(ptr long ptr) +@ stdcall QueryAllTracesW(ptr long ptr) # @ stub QueryRecoveryAgentsOnEncryptedFile @ stdcall QueryServiceConfig2A(long long ptr long ptr) @ stdcall QueryServiceConfig2W(long long ptr long ptr) diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c index 15cf4d56e99..7998039f169 100644 --- a/dlls/advapi32/eventlog.c +++ b/dlls/advapi32/eventlog.c @@ -263,6 +263,33 @@ HANDLE WINAPI OpenEventLogW( LPCWSTR uncname, LPCWSTR source ) return (HANDLE)0xcafe4242; } +/****************************************************************************** + * 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; +} + /****************************************************************************** * ReadEventLogA [ADVAPI32.@] *