當 ProcessTraceAddBufferToBufferStream完成緩衝區時,將會引發回呼的函式定義。 此回呼通常會適當地釋放緩衝區
語法
PETW_BUFFER_COMPLETION_CALLBACK PetwBufferCompletionCallback;
void PetwBufferCompletionCallback(
const ETW_BUFFER_HEADER *Buffer,
void *CallbackContext
)
{...}
參數
Buffer
原始 ETW 緩衝區的指標
CallbackContext
以 BufferCompletionCoNtext 的形式傳入 至 OpenTraceFromBufferStream的使用者定義內容。
傳回值
無
需求
| 最低支援的用戶端 | Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式] |
| 最低支援的伺服器 | Windows 2000 Server [傳統型應用程式 |UWP 應用程式] |
| 目標平台 | Windows |
| 標頭 | evntrace.h |
| 程式庫 | Windows 8.1 和 Windows Server 2012 R2 上的 Sechost.lib;Windows 8、Windows Server 2012、Windows 7、Windows Server 2008 R2、Windows Server 2008、Windows Vista 和 Windows XP 上的 Advapi32.lib |
| Dll | Windows 8.1 和 Windows Server 2012 R2 上的 Sechost.dll;windows 8、Windows Server 2012、Windows 7、Windows Server 2008 R2、Windows Server 2008、Windows Vista 和 Windows XP 上的 Advapi32.dll |