Helper class to enable event provider in constructor and disables it in destructor.
More...
#include <WinStd/ETW.h>
|
| event_trace_enabler (LPCGUID SourceId, TRACEHANDLE TraceHandle, LPCGUID ProviderId, UCHAR Level, ULONGLONG MatchAnyKeyword=0, ULONGLONG MatchAllKeyword=0, ULONG EnableProperty=0, PEVENT_FILTER_DESCRIPTOR EnableFilterDesc=NULL) |
| Enables event trace.
|
|
| event_trace_enabler (const event_session &session, LPCGUID ProviderId, UCHAR Level, ULONGLONG MatchAnyKeyword=0, ULONGLONG MatchAllKeyword=0, ULONG EnableProperty=0, PEVENT_FILTER_DESCRIPTOR EnableFilterDesc=NULL) |
| Enables event trace.
|
|
ULONG | status () const |
| Return result of EnableTraceEx() call.
|
|
virtual | ~event_trace_enabler () |
| Disables event trace.
|
|
|
ULONG | m_status |
| Result of EnableTraceEx call.
|
|
LPCGUID | m_provider_id |
| Provider ID.
|
|
LPCGUID | m_source_id |
| Session ID.
|
|
TRACEHANDLE | m_trace_handle |
| Trace handle.
|
|
UCHAR | m_level |
| Logging level.
|
|
ULONGLONG | m_match_any_keyword |
| Keyword match mask (any)
|
|
ULONGLONG | m_match_all_keyword |
| Keyword match mask (all)
|
|
ULONG | m_enable_property |
| Enable property.
|
|
PEVENT_FILTER_DESCRIPTOR | m_enable_filter_desc |
| Event filter descriptor.
|
|
Helper class to enable event provider in constructor and disables it in destructor.
◆ event_trace_enabler() [1/2]
winstd::event_trace_enabler::event_trace_enabler |
( |
LPCGUID | SourceId, |
|
|
TRACEHANDLE | TraceHandle, |
|
|
LPCGUID | ProviderId, |
|
|
UCHAR | Level, |
|
|
ULONGLONG | MatchAnyKeyword = 0, |
|
|
ULONGLONG | MatchAllKeyword = 0, |
|
|
ULONG | EnableProperty = 0, |
|
|
PEVENT_FILTER_DESCRIPTOR | EnableFilterDesc = NULL ) |
|
inline |
◆ event_trace_enabler() [2/2]
winstd::event_trace_enabler::event_trace_enabler |
( |
const event_session & | session, |
|
|
LPCGUID | ProviderId, |
|
|
UCHAR | Level, |
|
|
ULONGLONG | MatchAnyKeyword = 0, |
|
|
ULONGLONG | MatchAllKeyword = 0, |
|
|
ULONG | EnableProperty = 0, |
|
|
PEVENT_FILTER_DESCRIPTOR | EnableFilterDesc = NULL ) |
|
inline |
◆ ~event_trace_enabler()
virtual winstd::event_trace_enabler::~event_trace_enabler |
( |
| ) |
|
|
inlinevirtual |
◆ status()
ULONG winstd::event_trace_enabler::status |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: