ITraceRelogger::Inject method

The Inject method injects a non-system-generated event into the event stream being written to the output trace logfile.

Syntax

HRESULT Inject(
  ITraceEvent *Event
);

Parameters

Event

Type: IEvent*

The event to be injected into the stream.

Return Value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This is the primary way to indicate which events should go into the output trace logfile.

To preserve an existing event provided by IEventCallback::OnEvent, this method should be called.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header relogger.h

See Also

IEventCallback::OnEvent

ITraceRelogger