笔记函数 - 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 }