网站首页  词典首页

请输入您要查询的函数:

 

术语 buffercallback
释义 BufferCallback
语法:
C++
ULONG WINAPI BufferCallback(
__in PEVENT_TRACE_LOGFILE Buffer
);
BufferCallback回调函数
实现这个功能,消费者收到关于每个事件的缓冲统计数字ETW提供一个事件跟踪消费者。 ETW要求每个缓冲区后,这个函数的事件交付。
在PEVENT_TRACE_BUFFER_CALLBACK类型定义一个指向这个回调函数。 BufferCallback是一个应用程序的占位符定义函数的名称。
参数
缓冲区 [in]
指针的EVENT_TRACE_LOGFILE结构,其中包含有关缓冲区的信息。
返回值
要继续处理事件,返回TRUE。否则,返回FALSE。返回FALSE将终止ProcessTrace功能。
备注
要指定调用函数ETW提供缓冲区统计,设置EVENT_TRACE_LOGFILE结构BufferCallback成员,传递给OpenTrace功能。
实例
对于一个BufferCallback执行函数的例子,看到实现一个缓冲区回调函数。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderEvntrace.h
参见
EVENT_TRACE_LOGFILE
ProcessTrace
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==BufferCallback Callback Function
Consumers implement this function to receive statistics about each buffer of events that ETW delivers to an event trace consumer. ETW calls this function after the events for each buffer are delivered.
The PEVENT_TRACE_BUFFER_CALLBACK type defines a pointer to this callback function. BufferCallback is a placeholder for the application-defined function name.
Syntax
C++
ULONG WINAPI BufferCallback(
__in PEVENT_TRACE_LOGFILE Buffer
);
Parameters
Buffer [in]
Pointer to an EVENT_TRACE_LOGFILE structure that contains information about the buffer.
Return Value
To continue processing events, return TRUE. Otherwise, return FALSE. Returning FALSE will terminate the ProcessTrace function.
Remarks
To specify the function that ETW calls to deliver the buffer statistics, set the BufferCallback member of the EVENT_TRACE_LOGFILE structure that you pass to the OpenTrace function.
Examples
For an example implementation of a BufferCallback function, see Implementing a Buffer Callback Function .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderEvntrace.h
See Also
EVENT_TRACE_LOGFILE
ProcessTrace
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363685(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:31:03