ITraceRelogger::CreateEventInstance method

The CreateEventInstance method generates a new event.

Syntax


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

Parameters

TraceHandle [in]

Type: TRACEHANDLE

The trace from which to create the event.

Flags [in]

Type: ULONG

Indicates whether the event is classic or crimson.

Event [out, retval]

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]

Header

Relogger.h

IDL

Relogger.idl

See also

ITraceEvent
ITraceRelogger

 

 

Community Additions

ADD
Show:
© 2014 Microsoft