ITraceRelogger::CreateEventInstance method

The CreateEventInstance method generates a new event.

Syntax

HRESULT CreateEventInstance(
  TRACEHANDLE TraceHandle,
  ULONG       Flags,
  ITraceEvent **Event
);

Parameters

TraceHandle

Type: TRACEHANDLE

The trace from which to create the event.

Flags

Type: ULONG

Indicates whether the event is classic or crimson.

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

   
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