Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The AddRealtimeTraceStream method adds a new real-time ETW trace stream to the relogger.
Syntax
HRESULT AddRealtimeTraceStream(
[in] BSTR LoggerName,
[in] void *UserContext,
RELOGSTREAM_ID *TraceStreamId
);
Parameters
[in] LoggerName
Type: BSTR
The real-time logger generating the events to relog
[in] UserContext
Type: void*
The user context under which to relog these events.
TraceStreamId
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
| 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 |