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.@] *