PETW_BUFFER_COMPLETION_CALLBACK callback function (evntrace.h)

Function definition for the callback that will be fired when ProcessTraceAddBufferToBufferStream is finished with a buffer. This callback should typically free the buffer as appropriate

Syntax

PETW_BUFFER_COMPLETION_CALLBACK PetwBufferCompletionCallback;

void PetwBufferCompletionCallback(
  const ETW_BUFFER_HEADER *Buffer,
  void *CallbackContext
)
{...}

Parameters

Buffer

Pointer to the raw ETW buffer

CallbackContext

User defined context passed in as BufferCompletionContext to OpenTraceFromBufferStream.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header evntrace.h
Library Sechost.lib on Windows 8.1 and Windows Server 2012 R2; Advapi32.lib on Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Server 2008, Windows Vista and Windows XP
DLL Sechost.dll on Windows 8.1 and Windows Server 2012 R2; Advapi32.dll on Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Server 2008, Windows Vista and Windows XP