网站首页  词典首页

请输入您要查询的函数:

 

术语 waitortimercallback
释义 WaitOrTimerCallback
语法:
C++
VOID CALLBACK WaitOrTimerCallback(
__in PVOID lpParameter,
__in BOOLEAN TimerOrWaitFired
);
WaitOrTimerCallback回调函数
应用程序定义的函数作为计时器回调或注册等待回调的起始地址服务。指定这个地址时调用CreateTimerQueueTimer,RegisterWaitForSingleObject功能。
在WAITORTIMERCALLBACK类型定义一个指向这个回调函数。 WaitOrTimerCallback是一个应用程序的占位符定义函数的名称。
参数
lpParameter [in]
该线程传递给函数使用的CreateTimerQueueTimer或RegisterWaitForSingleObject功能参数数据。
TimerOrWaitFired [in]
如果此参数为TRUE,等待超时。如果此参数为FALSE,则等待事件已发出信号。 (此参数是永远对计时器的回调。)
返回值
这个函数没有返回值。
备注
此回调函数不能调用TerminateThread函数。
实例
举例说,使用这个回调函数,请参阅使用定时器队列。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
参见
CreateTimerQueueTimer
RegisterWaitForSingleObject
同步功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==WaitOrTimerCallback Callback Function
An application-defined function that serves as the starting address for a timer callback or a registered wait callback. Specify this address when calling the CreateTimerQueueTimer , RegisterWaitForSingleObject function.
The WAITORTIMERCALLBACK type defines a pointer to this callback function. WaitOrTimerCallback is a placeholder for the application-defined function name.
Syntax
C++
VOID CALLBACK WaitOrTimerCallback(
__in PVOID lpParameter,
__in BOOLEAN TimerOrWaitFired
);
Parameters
lpParameter [in]
The thread data passed to the function using a parameter of the CreateTimerQueueTimer or RegisterWaitForSingleObject function.
TimerOrWaitFired [in]
If this parameter is TRUE, the wait timed out. If this parameter is FALSE, the wait event has been signaled. (This parameter is always TRUE for timer callbacks.)
Return Value
This function does not return a value.
Remarks
This callback function must not call the TerminateThread function.
Examples
For an example that uses this callback function, see Using Timer Queues .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
See Also
CreateTimerQueueTimer
RegisterWaitForSingleObject
Synchronization Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms687066(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:26:09