EtwLogTraceEvent - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
ULONG EtwLogTraceEvent (
    _In_ TRACEHANDLE LoggerHandle,
    _In_ PEVENT_TRACE_HEADER EventTrace
)
View the official Win32 development documentation

NtDoc

No description available.

Win32 development documentation (etwlogtraceevent)

EtwLogTraceEvent function

Logs an event.

Parameters

LoggerHandle [in]

Handle to an event tracing session, or 0. You must specify a non-zero _SessionHandle_ if _SessionName_ is NULL. ETW ignores the handle if _SessionName_ is not NULL.

EventDescriptor [in]

An EVENT_TRACE_HEADER structure containing standard event tracing information common to all events written by TraceEvent.

Return value

A Win32 error code.

Remarks

This function is not defined in an SDK header and must be declared by the caller. This function is exported from ntdll.dll.