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(
  [in]  IEvent *Event
);

Parameters

Event [in]

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]

Header

Relogger.h

IDL

Relogger.idl

See also

ITraceRelogger
IEventCallback::OnEvent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft