网站首页  词典首页

请输入您要查询的函数:

 

术语 timerapcproc
释义 TimerAPCProc
语法:
C++
VOID CALLBACK TimerAPCProc(
__in_opt LPVOID lpArgToCompletionRoutine,
__in DWORD dwTimerLowValue,
__in DWORD dwTimerHighValue
);
TimerAPCProc回调函数
一个应用程序定义的定时器完成例程。指定这个地址时调用SetWaitableTimer功能。在PTIMERAPCROUTINE类型定义一个指向这个回调函数。 TimerAPCProc是一个应用程序的占位符定义函数的名称。
参数
lpArgToCompletionRoutine [中,可选]
传递给函数使用该SetWaitableTimer功能lpArgToCompletionRoutine参数的值。
dwTimerLowValue [in]
低的星期日秩序的一部分的时间计时器是该信号。此值对应于FILETIME结构dwLowDateTime成员。如需有关星期日信息化时,看到系统时间。
dwTimerHighValue [in]
在高星期日秩序部分,基于时间的计时器的信号。此值对应于FILETIME结构dwHighDateTime成员。
返回值
这个函数没有返回值。
备注
完成例程执行的线程激活计时器使用SetWaitableTimer。但是,线程必须在一个可报警状态。有关更多信息,请参阅异步过程调用。
实例
有关示例,请参阅使用一个异步过程调用一可等待计时器。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
参见
SetWaitableTimer
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==TimerAPCProc Callback Function
An application-defined timer completion routine. Specify this address when calling the SetWaitableTimer function. The PTIMERAPCROUTINE type defines a pointer to this callback function. TimerAPCProc is a placeholder for the application-defined function name.
Syntax
C++
VOID CALLBACK TimerAPCProc(
__in_opt LPVOID lpArgToCompletionRoutine,
__in DWORD dwTimerLowValue,
__in DWORD dwTimerHighValue
);
Parameters
lpArgToCompletionRoutine [in, optional]
The value passed to the function using the lpArgToCompletionRoutine parameter of the SetWaitableTimer function.
dwTimerLowValue [in]
The low-order portion of the UTC-based time at which the timer was signaled. This value corresponds to the dwLowDateTime member of the FILETIME structure. For more information about UTC-based time, see System Time .
dwTimerHighValue [in]
The high-order portion of the UTC-based time at which the timer was signaled. This value corresponds to the dwHighDateTime member of the FILETIME structure.
Return Value
This function does not return a value.
Remarks
The completion routine is executed by the thread that activates the timer using SetWaitableTimer . However, the thread must be in an alertable state. For more information, see Asynchronous Procedure Calls .
Examples
For an example, see Using a Waitable Timer with an Asynchronous Procedure Call .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
See Also
SetWaitableTimer
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686786(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 13:18:42