ITraceRelogger::CreateEventInstance method (relogger.h)

The CreateEventInstance method generates a new event.

Syntax

HRESULT CreateEventInstance(
                RELOGSTREAM_ID TraceStreamId,
  [in]          ULONG          Flags,
  [out, retval] ITraceEvent    **Event
);

Parameters

TraceStreamId

[in] Flags

Type: ULONG

Indicates whether the event is classic or crimson.

[out, retval] Event

Type: ITraceEvent**

The newly generated event.

Return value

Type: HRESULT

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

Remarks

Event metadata will be pulled from TraceHandle but can be modified by the developer before being logged to a trace.

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

See also

ITraceEvent

ITraceRelogger