#define Delay_One_MicroSecond (-10)
#define Delay_One_MilliSecond (Delay_One_MicroSecond * 1000)
void MySleep(LONG msec)
{
LARGE_INTEGER li;
li.QuadPart = Delay_One_MilliSecond;
li.QuadPart *= msec;
KeDelayExecutionThread(KernelMode, 0, &li);
}
windows driver 延时
最新推荐文章于 2022-01-28 14:21:08 发布