网站首页  词典首页

请输入您要查询的函数:

 

术语 changetimerqueuetimer
释义 ChangeTimerQueueTimer
语法:
C++
BOOL WINAPI ChangeTimerQueueTimer(
__in_opt HANDLE TimerQueue,
__inout HANDLE Timer,
__in ULONG DueTime,
__in ULONG Period
);
ChangeTimerQueueTimer功能
更新计时器队列定时器,是由CreateTimerQueueTimer函数创建。
参数
TimerQueue [中,可选]
一个句柄,计时器队列。这种处理是由CreateTimerQueue函数返回。
如果该参数为NULL,定时器,是与默认的定时器队列。
定时器[ in , out ]
一个句柄,计时器队列计时器。这种处理是由CreateTimerQueueTimer函数返回。
DueTime [in]
之后的时间应在计时器到期,以毫秒为单位。
期 [in]
定时器的时间,以毫秒为单位。如果此参数为0,定时器信号一次。如果该参数大于零,定时器是周期性的。一个周期性定时器自动重新激活,每次期间满期,直到计时器被取消使用DeleteTimerQueueTimer函数或重新使用ChangeTimerQueueTimer。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
此函数不能称为线程,而使用模拟。由此产生的行为是不确定的。
您可以调用计时器回调ChangeTimerQueueTimer。
如果您要求一次性定时器ChangeTimerQueueTimer(其期限是零)表示,已经届满,计时器不会更新。
不要调用,拜访一个句柄DeleteTimerQueueTimer ChangeTimerQueueTimer。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0500或更高版本。有关详细信息,请参阅使用Windows头。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CreateTimerQueue
CreateTimerQueueTimer
DeleteTimerQueueTimer
同步功能
线程池
定时器队列
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==ChangeTimerQueueTimer Function
Updates a timer-queue timer that was created by the CreateTimerQueueTimer function.
Syntax
C++
BOOL WINAPI ChangeTimerQueueTimer(
__in_opt HANDLE TimerQueue,
__inout HANDLE Timer,
__in ULONG DueTime,
__in ULONG Period
);
Parameters
TimerQueue [in, optional]
A handle to the timer queue. This handle is returned by the CreateTimerQueue function.
If this parameter is NULL, the timer is associated with the default timer queue.
Timer [in, out]
A handle to the timer-queue timer. This handle is returned by the CreateTimerQueueTimer function.
DueTime [in]
The time after which the timer should expire, in milliseconds.
Period [in]
The period of the timer, in milliseconds. If this parameter is zero, the timer is signaled once. If this parameter is greater than zero, the timer is periodic. A periodic timer automatically reactivates each time the period elapses, until the timer is canceled using the DeleteTimerQueueTimer function or reset using ChangeTimerQueueTimer.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
This function cannot be called while the thread is using impersonation. The resulting behavior is undefined.
You can call ChangeTimerQueueTimer in a timer callback.
If you call ChangeTimerQueueTimer on a one-shot timer (its period is zero) that has already expired, the timer is not updated.
Do not call ChangeTimerQueueTimer after calling DeleteTimerQueueTimer on a handle.
To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CreateTimerQueue
CreateTimerQueueTimer
DeleteTimerQueueTimer
Synchronization Functions
Thread Pooling
Timer Queues
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682004(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:23:11