Windows Dev Center

ITraceRelogger::AddLogfileTraceStream method

The AddLogfileTraceStream method adds a new logfile-based ETW trace stream to the relogger.

Syntax


HRESULT AddLogfileTraceStream(
  [in]          BSTR        LogfileName,
  [in]          void        *UserContext,
  [out, retval] TRACEHANDLE *TraceHandle
);

Parameters

LogfileName [in]

Type: BSTR

The file that contains the events to be relogged.

UserContext [in]

Type: void*

The user context under which to relog these events.

TraceHandle [out, retval]

Type: TRACEHANDLE*

Handle to be used when adding new artificial events to the trace stream.

Return value

Type: HRESULT

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

Remarks

Events in the newly-added stream will generate callbacks to the IEventCallback object associated with this relogger.

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
Consuming Events

 

 

Community Additions

ADD
Show:
© 2015 Microsoft