网站首页  词典首页

请输入您要查询的函数:

 

术语 createtimerqueue
释义 CreateTimerQueue
语法:
C++
HANDLE WINAPI CreateTimerQueue(void);
CreateTimerQueue功能
创建一个定时器队列。定时器队列定时器是轻量级的对象,使您能够指定一个回调函数将在指定的时间要求。
参数
这个函数没有参数。
返回值
如果函数成功,返回值是一个句柄计时器队列。这种处理只能在函数中使用要求的句柄计时器队列。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
要添加一个定时器队列,调用CreateTimerQueueTimer功能。为了从队列中删除一个定时器,调用DeleteTimerQueueTimer功能。
When you are finished with the queue of timers, call the DeleteTimerQueueEx function to delete the timer queue.在队列中的所有未结定时器被取消和删除。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0500或更高版本。有关详细信息,请参阅使用Windows头。
实例
举一个例子,它使用CreateTimerQueue,请参阅使用定时器队列。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CreateTimerQueueTimer
DeleteTimerQueueEx
DeleteTimerQueueTimer
同步功能
线程池
定时器队列
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==CreateTimerQueue Function
Creates a queue for timers. Timer-queue timers are lightweight objects that enable you to specify a callback function to be called at a specified time.
Syntax
C++
HANDLE WINAPI CreateTimerQueue(void);
Parameters
This function has no parameters.
Return Value
If the function succeeds, the return value is a handle to the timer queue. This handle can be used only in functions that require a handle to a timer queue.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
To add a timer to the queue, call the CreateTimerQueueTimer function. To remove a timer from the queue, call the DeleteTimerQueueTimer function.
When you are finished with the queue of timers, call the DeleteTimerQueueEx function to delete the timer queue. Any pending timers in the queue are canceled and deleted.
To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the Windows Headers .
Examples
For an example that uses CreateTimerQueue, see Using Timer Queues .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CreateTimerQueueTimer
DeleteTimerQueueEx
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/ms682483(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:24:15