Share via


PETW_BUFFER_COMPLETION_CALLBACK fonction de rappel (evntrace.h)

Définition de fonction pour le rappel qui sera déclenché lorsque ProcessTraceAddBufferToBufferStream est terminé avec une mémoire tampon. Ce rappel doit généralement libérer la mémoire tampon comme il convient

Syntaxe

PETW_BUFFER_COMPLETION_CALLBACK PetwBufferCompletionCallback;

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

Paramètres

Buffer

Pointeur vers la mémoire tampon ETW brute

CallbackContext

Contexte défini par l’utilisateur passé en tant que BufferCompletionContext à OpenTraceFromBufferStream.

Valeur de retour

None

Spécifications

   
Client minimal pris en charge Windows 2000 Professionnel [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows 2000 Server [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête evntrace.h
Bibliothèque Sechost.lib sur Windows 8.1 et Windows Server 2012 R2 ; Advapi32.lib sur Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Server 2008, Windows Vista et Windows XP
DLL Sechost.dll sur Windows 8.1 et Windows Server 2012 R2 ; Advapi32.dll sur Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Server 2008, Windows Vista et Windows XP