diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index 0e27e743596..9bf6eae3a34 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -217,6 +217,7 @@ # @ stub EqualDomainSid @ stdcall EqualPrefixSid(ptr ptr) @ stdcall EqualSid(ptr ptr) +@ stdcall EventEnabled(int64 ptr) @ stdcall EventRegister(ptr ptr ptr ptr) @ stdcall FileEncryptionStatusA(str ptr) @ stdcall FileEncryptionStatusW(wstr ptr) diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c index 26be42ebda7..14285886dc8 100644 --- a/dlls/advapi32/eventlog.c +++ b/dlls/advapi32/eventlog.c @@ -818,6 +818,16 @@ ULONG WINAPI EventRegister( LPCGUID provider, PENABLECALLBACK callback, PVOID co return ERROR_CALL_NOT_IMPLEMENTED; } +/****************************************************************************** + * EventEnabled [ADVAPI32.@] + * + */ +BOOLEAN WINAPI EventEnabled( REGHANDLE handle, PCEVENT_DESCRIPTOR descriptor ) +{ + FIXME("(%s, %p): stub\n", wine_dbgstr_longlong(handle), descriptor); + return FALSE; +} + /****************************************************************************** * QueryTraceW [ADVAPI32.@] */ diff --git a/include/evntprov.h b/include/evntprov.h index 4bb3d148279..34262fe18ac 100644 --- a/include/evntprov.h +++ b/include/evntprov.h @@ -23,8 +23,25 @@ extern "C" { #endif +#define EVENT_LEVEL_MIN 0x00 +#define EVENT_LEVEL_MAX 0xff + typedef ULONGLONG REGHANDLE, *PREGHANDLE; +typedef struct _EVENT_DESCRIPTOR +{ + USHORT Id; + UCHAR Version; + UCHAR Channel; + UCHAR Level; + UCHAR Opcode; + USHORT Task; + ULONGLONG Keyword; +} EVENT_DESCRIPTOR; + +typedef EVENT_DESCRIPTOR *PEVENT_DESCRIPTOR; +typedef const EVENT_DESCRIPTOR *PCEVENT_DESCRIPTOR; + typedef struct _EVENT_FILTER_DESCRIPTOR { ULONGLONG Ptr; @@ -35,6 +52,7 @@ typedef struct _EVENT_FILTER_DESCRIPTOR typedef VOID (NTAPI *PENABLECALLBACK)(LPCGUID,ULONG,UCHAR,ULONGLONG,ULONGLONG,PEVENT_FILTER_DESCRIPTOR,PVOID); +BOOLEAN WINAPI EventEnabled(REGHANDLE, PCEVENT_DESCRIPTOR); ULONG WINAPI EventRegister(LPCGUID,PENABLECALLBACK,PVOID,PREGHANDLE); ULONG WINAPI EventUnregister(REGHANDLE);