码迷,mamicode.com
首页 > 其他好文 > 详细

笔记函数 - Ring0 Sleep()

时间:2017-09-16 16:05:36      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:cut   integer   read   end   execution   函数   ring   second   one   

1 #define DELAY_ONE_MICROSECOND (-10)
2 #define DELAY_ONE_MILLISEND   (DELAY_ONE_MICROSECOND*1000)
3 void Sleep(LONG Millisend)
4 {
5     LARGE_INTEGER Interval;
6     Interval.QuadPart = DELAY_ONE_MILLISEND;
7     Interval.QuadPart *= Millisend;
8     KeDelayExecutionThread(kernelMode,0,&Interval);
9 }

 

笔记函数 - Ring0 Sleep()

标签:cut   integer   read   end   execution   函数   ring   second   one   

原文地址:http://www.cnblogs.com/1228073191Blog/p/7531308.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!