ntdll: Move EventRegister/Unregister from advapi32 to ntdll.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Müller 2016-10-27 16:17:31 +03:00 committed by Alexandre Julliard
parent 4814aad7fe
commit 900366fd07
4 changed files with 26 additions and 22 deletions

View File

@ -272,9 +272,9 @@
@ stdcall EventActivityIdControl(long ptr)
@ stdcall EventEnabled(int64 ptr)
@ stdcall EventProviderEnabled(int64 long int64)
@ stdcall EventRegister(ptr ptr ptr ptr)
@ stdcall EventRegister(ptr ptr ptr ptr) ntdll.EtwEventRegister
@ stdcall EventSetInformation(int64 long ptr long)
@ stdcall EventUnregister(int64)
@ stdcall EventUnregister(int64) ntdll.EtwEventUnregister
@ stdcall EventWrite(int64 ptr long ptr)
# @ stub EventWriteEndScenario
# @ stub EventWriteEx

View File

@ -828,26 +828,6 @@ ULONG WINAPI UnregisterTraceGuids( TRACEHANDLE RegistrationHandle )
return ERROR_CALL_NOT_IMPLEMENTED;
}
/******************************************************************************
* EventRegister [ADVAPI32.@]
*/
ULONG WINAPI EventRegister( LPCGUID provider, PENABLECALLBACK callback, PVOID context, PREGHANDLE handle )
{
FIXME("%s, %p, %p, %p\n", debugstr_guid(provider), callback, context, handle);
*handle = 0xdeadbeef;
return ERROR_SUCCESS;
}
/******************************************************************************
* EventUnregister [ADVAPI32.@]
*/
ULONG WINAPI EventUnregister( REGHANDLE handle )
{
FIXME("%s: stub\n", wine_dbgstr_longlong(handle));
return ERROR_SUCCESS;
}
/******************************************************************************
* EventEnabled [ADVAPI32.@]
*

View File

@ -34,6 +34,7 @@
#include "ntdll_misc.h"
#include "wmistr.h"
#include "evntrace.h"
#include "evntprov.h"
WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
@ -358,6 +359,27 @@ HANDLE WINAPI WinSqmStartSession(GUID *sessionguid, DWORD sessionid, DWORD unkno
return INVALID_HANDLE_VALUE;
}
/******************************************************************************
* EtwEventRegister (NTDLL.@)
*/
ULONG WINAPI EtwEventRegister( LPCGUID provider, PENABLECALLBACK callback, PVOID context,
PREGHANDLE handle )
{
FIXME("(%s, %p, %p, %p) stub.\n", debugstr_guid(provider), callback, context, handle);
*handle = 0xdeadbeef;
return ERROR_SUCCESS;
}
/******************************************************************************
* EtwEventUnregister (NTDLL.@)
*/
ULONG WINAPI EtwEventUnregister( REGHANDLE handle )
{
FIXME("(%s) stub.\n", wine_dbgstr_longlong(handle));
return ERROR_SUCCESS;
}
/******************************************************************************
* EtwRegisterTraceGuidsW (NTDLL.@)
*

View File

@ -41,6 +41,8 @@
# @ stub DbgUiStopDebugging
@ stub DbgUiWaitStateChange
@ stdcall DbgUserBreakPoint()
@ stdcall EtwEventRegister(ptr ptr ptr ptr)
@ stdcall EtwEventUnregister(int64)
@ stdcall EtwRegisterTraceGuidsA(ptr ptr ptr long ptr str str ptr)
@ stdcall EtwRegisterTraceGuidsW(ptr ptr ptr long ptr wstr wstr ptr)
# @ stub KiFastSystemCall