ITraceRelogger::Inject method (relogger.h)
The Inject method injects a non-system-generated event into the event stream being written to the output trace logfile.
Syntax
HRESULT Inject(
[in] ITraceEvent *Event
);
Parameters
[in] 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
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | relogger.h |