1. 程式人生 > >核心中睡眠 函式 KeDelayExecutionThread 睡30秒

核心中睡眠 函式 KeDelayExecutionThread 睡30秒

VOID shuimian(ULONG n)
{

KdPrint(("進入睡眠.............\n"));
LARGE_INTEGER timeout;
timeout.QuadPart = -10 * 1000 * 1000;
timeout.QuadPart *= n;
KeDelayExecutionThread(KernelMode, FALSE, &timeout);
//KdPrint(("睡眠結束\n"));
}
shuimian(30); 
送大家一個 睡眠函式 管用 睡30秒