ReactOS 0.4.16-dev-295-g4aee028
evntprov.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _EVENT_DATA_DESCRIPTOR
 
struct  _EVENT_DESCRIPTOR
 
struct  _EVENT_FILTER_DESCRIPTOR
 
struct  _EVENT_FILTER_HEADER
 

Macros

#define _EVNTPROV_
 
#define EVNTAPI   DECLSPEC_IMPORT __stdcall
 
#define EVENT_MIN_LEVEL   (0)
 
#define EVENT_MAX_LEVEL   (0xff)
 
#define EVENT_ACTIVITY_CTRL_GET_ID   (1)
 
#define EVENT_ACTIVITY_CTRL_SET_ID   (2)
 
#define EVENT_ACTIVITY_CTRL_CREATE_ID   (3)
 
#define EVENT_ACTIVITY_CTRL_GET_SET_ID   (4)
 
#define EVENT_ACTIVITY_CTRL_CREATE_SET_ID   (5)
 
#define MAX_EVENT_DATA_DESCRIPTORS   (128)
 
#define MAX_EVENT_FILTER_DATA_SIZE   (1024)
 
#define EVENT_FILTER_TYPE_SCHEMATIZED   (0x80000000)
 

Typedefs

typedef ULONGLONG REGHANDLE
 
typedef ULONGLONGPREGHANDLE
 
typedef struct _EVENT_DATA_DESCRIPTOR EVENT_DATA_DESCRIPTOR
 
typedef struct _EVENT_DATA_DESCRIPTORPEVENT_DATA_DESCRIPTOR
 
typedef struct _EVENT_DESCRIPTOR EVENT_DESCRIPTOR
 
typedef struct _EVENT_DESCRIPTORPEVENT_DESCRIPTOR
 
typedef const EVENT_DESCRIPTORPCEVENT_DESCRIPTOR
 
typedef struct _EVENT_FILTER_DESCRIPTOR EVENT_FILTER_DESCRIPTOR
 
typedef struct _EVENT_FILTER_DESCRIPTORPEVENT_FILTER_DESCRIPTOR
 
typedef struct _EVENT_FILTER_HEADER EVENT_FILTER_HEADER
 
typedef struct _EVENT_FILTER_HEADERPEVENT_FILTER_HEADER
 
typedef VOID(NTAPIPENABLECALLBACK) (_In_ LPCGUID SourceId, _In_ ULONG IsEnabled, _In_ UCHAR Level, _In_ ULONGLONG MatchAnyKeyword, _In_ ULONGLONG MatchAllKeyword, _In_opt_ PEVENT_FILTER_DESCRIPTOR FilterData, _Inout_opt_ PVOID CallbackContext)
 

Functions

ULONG EVNTAPI EventRegister (_In_ LPCGUID ProviderId, _In_opt_ PENABLECALLBACK EnableCallback, _In_opt_ PVOID CallbackContext, _Out_ PREGHANDLE RegHandle)
 
ULONG EVNTAPI EventUnregister (_In_ REGHANDLE RegHandle)
 
BOOLEAN EVNTAPI EventEnabled (_In_ REGHANDLE RegHandle, _In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
BOOLEAN EVNTAPI EventProviderEnabled (_In_ REGHANDLE RegHandle, _In_ UCHAR Level, _In_ ULONGLONG Keyword)
 
ULONG EVNTAPI EventWrite (_In_ REGHANDLE RegHandle, _In_ PCEVENT_DESCRIPTOR EventDescriptor, _In_ ULONG UserDataCount, _In_reads_opt_(UserDataCount) PEVENT_DATA_DESCRIPTOR UserData)
 
ULONG EVNTAPI EventWriteTransfer (_In_ REGHANDLE RegHandle, _In_ PCEVENT_DESCRIPTOR EventDescriptor, _In_opt_ LPCGUID ActivityId, _In_opt_ LPCGUID RelatedActivityId, _In_ ULONG UserDataCount, _In_reads_opt_(UserDataCount) PEVENT_DATA_DESCRIPTOR UserData)
 
ULONG EVNTAPI EventWriteString (_In_ REGHANDLE RegHandle, _In_ UCHAR Level, _In_ ULONGLONG Keyword, _In_ PCWSTR String)
 
ULONG EVNTAPI EventActivityIdControl (_In_ ULONG ControlCode, _Inout_ LPGUID ActivityId)
 
ULONG EVNTAPI EventWriteEx (_In_ REGHANDLE RegHandle, _In_ PCEVENT_DESCRIPTOR EventDescriptor, _In_ ULONG64 Filter, _In_ ULONG Flags, _In_opt_ LPCGUID ActivityId, _In_opt_ LPCGUID RelatedActivityId, _In_ ULONG UserDataCount, _In_reads_opt_(UserDataCount) PEVENT_DATA_DESCRIPTOR UserData)
 
FORCEINLINE VOID EventDataDescCreate (_Out_ PEVENT_DATA_DESCRIPTOR EventDataDescriptor, _In_reads_bytes_(DataSize) const VOID *DataPtr, _In_ ULONG DataSize)
 
FORCEINLINE VOID EventDescCreate (_Out_ PEVENT_DESCRIPTOR EventDescriptor, _In_ USHORT Id, _In_ UCHAR Version, _In_ UCHAR Channel, _In_ UCHAR Level, _In_ USHORT Task, _In_ UCHAR Opcode, _In_ ULONGLONG Keyword)
 
FORCEINLINE VOID EventDescZero (_Out_ PEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE USHORT EventDescGetId (_In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE UCHAR EventDescGetVersion (_In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE USHORT EventDescGetTask (_In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE UCHAR EventDescGetOpcode (_In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE UCHAR EventDescGetChannel (_In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE UCHAR EventDescGetLevel (_In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE ULONGLONG EventDescGetKeyword (_In_ PCEVENT_DESCRIPTOR EventDescriptor)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescSetId (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ USHORT Id)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescSetVersion (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ UCHAR Version)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescSetTask (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ USHORT Task)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescSetOpcode (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ UCHAR Opcode)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescSetLevel (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ UCHAR Level)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescSetChannel (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ UCHAR Channel)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescSetKeyword (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ ULONGLONG Keyword)
 
FORCEINLINE PEVENT_DESCRIPTOR EventDescOrKeyword (_In_ PEVENT_DESCRIPTOR EventDescriptor, _In_ ULONGLONG Keyword)
 

Macro Definition Documentation

◆ _EVNTPROV_

#define _EVNTPROV_

Definition at line 23 of file evntprov.h.

◆ EVENT_ACTIVITY_CTRL_CREATE_ID

#define EVENT_ACTIVITY_CTRL_CREATE_ID   (3)

Definition at line 44 of file evntprov.h.

◆ EVENT_ACTIVITY_CTRL_CREATE_SET_ID

#define EVENT_ACTIVITY_CTRL_CREATE_SET_ID   (5)

Definition at line 46 of file evntprov.h.

◆ EVENT_ACTIVITY_CTRL_GET_ID

#define EVENT_ACTIVITY_CTRL_GET_ID   (1)

Definition at line 42 of file evntprov.h.

◆ EVENT_ACTIVITY_CTRL_GET_SET_ID

#define EVENT_ACTIVITY_CTRL_GET_SET_ID   (4)

Definition at line 45 of file evntprov.h.

◆ EVENT_ACTIVITY_CTRL_SET_ID

#define EVENT_ACTIVITY_CTRL_SET_ID   (2)

Definition at line 43 of file evntprov.h.

◆ EVENT_FILTER_TYPE_SCHEMATIZED

#define EVENT_FILTER_TYPE_SCHEMATIZED   (0x80000000)

Definition at line 53 of file evntprov.h.

◆ EVENT_MAX_LEVEL

#define EVENT_MAX_LEVEL   (0xff)

Definition at line 40 of file evntprov.h.

◆ EVENT_MIN_LEVEL

#define EVENT_MIN_LEVEL   (0)

Definition at line 39 of file evntprov.h.

◆ EVNTAPI

Definition at line 30 of file evntprov.h.

◆ MAX_EVENT_DATA_DESCRIPTORS

#define MAX_EVENT_DATA_DESCRIPTORS   (128)

Definition at line 50 of file evntprov.h.

◆ MAX_EVENT_FILTER_DATA_SIZE

#define MAX_EVENT_FILTER_DATA_SIZE   (1024)

Definition at line 51 of file evntprov.h.

Typedef Documentation

◆ EVENT_DATA_DESCRIPTOR

◆ EVENT_DESCRIPTOR

◆ EVENT_FILTER_DESCRIPTOR

◆ EVENT_FILTER_HEADER

◆ PCEVENT_DESCRIPTOR

Definition at line 70 of file evntprov.h.

◆ PENABLECALLBACK

◆ PEVENT_DATA_DESCRIPTOR

◆ PEVENT_DESCRIPTOR

◆ PEVENT_FILTER_DESCRIPTOR

◆ PEVENT_FILTER_HEADER

◆ PREGHANDLE

typedef ULONGLONG * PREGHANDLE

Definition at line 48 of file evntprov.h.

◆ REGHANDLE

Definition at line 48 of file evntprov.h.

Function Documentation

◆ EventActivityIdControl()

◆ EventDataDescCreate()

FORCEINLINE VOID EventDataDescCreate ( _Out_ PEVENT_DATA_DESCRIPTOR  EventDataDescriptor,
_In_reads_bytes_(DataSize) const VOID DataPtr,
_In_ ULONG  DataSize 
)

Definition at line 180 of file evntprov.h.

184{
185 EventDataDescriptor->Ptr = (ULONGLONG)(ULONG_PTR)DataPtr;
186 EventDataDescriptor->Size = DataSize;
187 EventDataDescriptor->Reserved = 0;
188}
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4755
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint64_t ULONGLONG
Definition: typedefs.h:67

Referenced by PerfIoComplete(), PerfIoStart(), and PerformanceAnalysisPowerProcess().

◆ EventDescCreate()

FORCEINLINE VOID EventDescCreate ( _Out_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ USHORT  Id,
_In_ UCHAR  Version,
_In_ UCHAR  Channel,
_In_ UCHAR  Level,
_In_ USHORT  Task,
_In_ UCHAR  Opcode,
_In_ ULONGLONG  Keyword 
)

Definition at line 192 of file evntprov.h.

201{
204 EventDescriptor->Channel = Channel;
206 EventDescriptor->Task = Task;
209}
DWORD Id
_In_ PVOID _In_ ULONG Opcode
Definition: hubbusif.h:331
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_CONFIGURATION_PARAMETER _In_ NDIS_HANDLE _In_ PNDIS_STRING Keyword
Definition: ndis.h:4416
ULONGLONG Keyword
Definition: evntprov.h:68
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
Definition: wdffdo.h:469
_In_ PCEVENT_DESCRIPTOR EventDescriptor
Definition: wmifuncs.h:93
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56

◆ EventDescGetChannel()

FORCEINLINE UCHAR EventDescGetChannel ( _In_ PCEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 253 of file evntprov.h.

255{
256 return (EventDescriptor->Channel);
257}

◆ EventDescGetId()

FORCEINLINE USHORT EventDescGetId ( _In_ PCEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 221 of file evntprov.h.

223{
224 return (EventDescriptor->Id);
225}

◆ EventDescGetKeyword()

FORCEINLINE ULONGLONG EventDescGetKeyword ( _In_ PCEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 269 of file evntprov.h.

271{
272 return (EventDescriptor->Keyword);
273}

◆ EventDescGetLevel()

FORCEINLINE UCHAR EventDescGetLevel ( _In_ PCEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 261 of file evntprov.h.

263{
264 return (EventDescriptor->Level);
265}

◆ EventDescGetOpcode()

FORCEINLINE UCHAR EventDescGetOpcode ( _In_ PCEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 245 of file evntprov.h.

247{
248 return (EventDescriptor->Opcode);
249}

◆ EventDescGetTask()

FORCEINLINE USHORT EventDescGetTask ( _In_ PCEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 237 of file evntprov.h.

239{
240 return (EventDescriptor->Task);
241}

◆ EventDescGetVersion()

FORCEINLINE UCHAR EventDescGetVersion ( _In_ PCEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 229 of file evntprov.h.

231{
232 return (EventDescriptor->Version);
233}

◆ EventDescOrKeyword()

FORCEINLINE PEVENT_DESCRIPTOR EventDescOrKeyword ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ ULONGLONG  Keyword 
)

Definition at line 348 of file evntprov.h.

351{
353 return (EventDescriptor);
354}

◆ EventDescSetChannel()

FORCEINLINE PEVENT_DESCRIPTOR EventDescSetChannel ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ UCHAR  Channel 
)

Definition at line 327 of file evntprov.h.

330{
331 EventDescriptor->Channel = Channel;
332 return (EventDescriptor);
333}

◆ EventDescSetId()

FORCEINLINE PEVENT_DESCRIPTOR EventDescSetId ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ USHORT  Id 
)

Definition at line 277 of file evntprov.h.

280{
282 return (EventDescriptor);
283}

◆ EventDescSetKeyword()

FORCEINLINE PEVENT_DESCRIPTOR EventDescSetKeyword ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ ULONGLONG  Keyword 
)

Definition at line 337 of file evntprov.h.

340{
342 return (EventDescriptor);
343}

◆ EventDescSetLevel()

FORCEINLINE PEVENT_DESCRIPTOR EventDescSetLevel ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ UCHAR  Level 
)

Definition at line 317 of file evntprov.h.

320{
322 return (EventDescriptor);
323}

◆ EventDescSetOpcode()

FORCEINLINE PEVENT_DESCRIPTOR EventDescSetOpcode ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ UCHAR  Opcode 
)

Definition at line 307 of file evntprov.h.

310{
312 return (EventDescriptor);
313}

◆ EventDescSetTask()

FORCEINLINE PEVENT_DESCRIPTOR EventDescSetTask ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ USHORT  Task 
)

Definition at line 297 of file evntprov.h.

300{
301 EventDescriptor->Task = Task;
302 return (EventDescriptor);
303}

◆ EventDescSetVersion()

FORCEINLINE PEVENT_DESCRIPTOR EventDescSetVersion ( _In_ PEVENT_DESCRIPTOR  EventDescriptor,
_In_ UCHAR  Version 
)

Definition at line 287 of file evntprov.h.

290{
292 return (EventDescriptor);
293}

◆ EventDescZero()

FORCEINLINE VOID EventDescZero ( _Out_ PEVENT_DESCRIPTOR  EventDescriptor)

Definition at line 213 of file evntprov.h.

215{
217}
#define memset(x, y, z)
Definition: compat.h:39

◆ EventEnabled()

BOOLEAN EVNTAPI EventEnabled ( _In_ REGHANDLE  RegHandle,
_In_ PCEVENT_DESCRIPTOR  EventDescriptor 
)

◆ EventProviderEnabled()

BOOLEAN EVNTAPI EventProviderEnabled ( _In_ REGHANDLE  RegHandle,
_In_ UCHAR  Level,
_In_ ULONGLONG  Keyword 
)

◆ EventRegister()

ULONG EVNTAPI EventRegister ( _In_ LPCGUID  ProviderId,
_In_opt_ PENABLECALLBACK  EnableCallback,
_In_opt_ PVOID  CallbackContext,
_Out_ PREGHANDLE  RegHandle 
)

◆ EventUnregister()

ULONG EVNTAPI EventUnregister ( _In_ REGHANDLE  RegHandle)

◆ EventWrite()

ULONG EVNTAPI EventWrite ( _In_ REGHANDLE  RegHandle,
_In_ PCEVENT_DESCRIPTOR  EventDescriptor,
_In_ ULONG  UserDataCount,
_In_reads_opt_(UserDataCount) PEVENT_DATA_DESCRIPTOR  UserData 
)

◆ EventWriteEx()

ULONG EVNTAPI EventWriteEx ( _In_ REGHANDLE  RegHandle,
_In_ PCEVENT_DESCRIPTOR  EventDescriptor,
_In_ ULONG64  Filter,
_In_ ULONG  Flags,
_In_opt_ LPCGUID  ActivityId,
_In_opt_ LPCGUID  RelatedActivityId,
_In_ ULONG  UserDataCount,
_In_reads_opt_(UserDataCount) PEVENT_DATA_DESCRIPTOR  UserData 
)

◆ EventWriteString()

ULONG EVNTAPI EventWriteString ( _In_ REGHANDLE  RegHandle,
_In_ UCHAR  Level,
_In_ ULONGLONG  Keyword,
_In_ PCWSTR  String 
)

◆ EventWriteTransfer()

ULONG EVNTAPI EventWriteTransfer ( _In_ REGHANDLE  RegHandle,
_In_ PCEVENT_DESCRIPTOR  EventDescriptor,
_In_opt_ LPCGUID  ActivityId,
_In_opt_ LPCGUID  RelatedActivityId,
_In_ ULONG  UserDataCount,
_In_reads_opt_(UserDataCount) PEVENT_DATA_DESCRIPTOR  UserData 
)