WaitableTimer
来源:互联网 发布:阿里云解析二级域名 编辑:程序博客网 时间:2024/05/10 23:17
SYSTEMTIME sysTime;
GetLocalTime(&sysTime);
sysTime.wMinute=0;
sysTime.wSecond=0;
sysTime.wMilliSecond=0;
FILETIME fileTime;
SystemTimeToFileTime(&fileTime,&sysTime);
LARGE_INTEGER largeInteger;
largeInteger.HiPart=fileTime.HiWord;
largeInteger.LoPart=fileTime.LoWord;
largeInteger.QuadPart += 60*60*1000*1000*10;HANDLE hWaitableTimer =CreateWaitableTimer(NULL,FALSE,NULL);if(!hWaitableTimer)
{ Exception handle here}
if(!SetWaitableTimer(hWaitableTimer,&largeInteger,60*60*1000*1000*10,NULL,NULL,FALSE))
{Exception handle here}
- WaitableTimer
- WaitableTimer的实例讲解
- WaitableTimer的两种用法
- WaitableTimer 的特殊之处
- WaitableTimer与SetTimer的区别
- 内核对象--可等待计时器WaitableTimer(一)
- 内核对象--可等待计时器WaitableTimer(二)
- 多线程编程(14) - 多线程同步之 WaitableTimer (等待定时器对象)
- 基于内核对象WaitableTimer实现的Timer组件
- 使用可等候定时器进行windows 线程同步 waitabletimer
- 线程同步 等待定时器 WaitableTimer 内核对象 CreateWaitableTimer
- 多线程编程(15) - 多线程同步之 WaitableTimer (等待定时器对象)[续]
- 多线程编程(16) - 多线程同步之 WaitableTimer (等待定时器对象)[续二]
- 多线程编程(17) - 多线程同步之 WaitableTimer (等待定时器对象)[续三]
- Windows Vista编译Qtiplot0.9.7.14--附有Python脚本功能
- RGB至其它颜色空间转换公式
- fat32转ntfs
- 图灵机和NP
- ASP.NET代码优化
- WaitableTimer
- STL中map与优先级队列
- 使用Word2007博客功能,发布文章到CSDN Blog
- 升级到051.018
- Java/JSP中使用JDBC连接SQL Server 2005
- 自动备份脚本
- EMSNIFFER.C完整版
- c# Observer设计模式
- Fibonacci(斐波纳契)