Event Tracing Provider Framework  

CTraceEvent::Trace(TRACEHANDLE hSession, TEvent event)

This method uses a specific provider’s session handle to fire events the Operating Systems event tracer. It calls TraceEvent to fire the event.

[C++]
public: template <class TEvent> ULONG Trace(
    TRACEHANDLE hSession, 
    TEvent& event
    );

Parameters

hSession
This parameter is a TRACEHANDLE returned by GetTraceLoggerHandle.
event
This parameter is a class derived from either CBaseEvent or CVariableLengthBaseEvent.

Return Value

The return value for this function is the return value from TraceEvent.

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Header: Declared in WMIEventTracing.h

 

See Also

CVariableLengthBaseEvent Members | CVariableLengthBaseEvent | CTraceEvent Members | CTraceEvent | CTraceController Members | CTraceController | CEventTraceConfig | CBaseEvent Members | CBaseEvent

Contact Me   |  Developing WMI Solutions    |   Gwyn Cole's Developer Blog    |   Legal
 © 2003 Content by Gwyn Cole. All rights reserved.