网站首页  计算机词典

请输入您要查询的字词:

 

字词 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
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/24 0:34:49