笔记函数 - Ring0 Sleep()

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 }

 

posted on 2017-09-16 14:46  czhang4  阅读(243)  评论(0编辑  收藏  举报