zoukankan      html  css  js  c++  java
  • 驱动中 定时

    NTSTATUS 
      KeWaitForSingleObject(
        IN PVOID  Object,
        IN KWAIT_REASON  WaitReason,
        IN KPROCESSOR_MODE  WaitMode,
        IN BOOLEAN  Alertable,
        IN PLARGE_INTEGER  Timeout  OPTIONAL   // Pointer to a time-out value that specifies the absolute or relative time, in 100 nanosecond units, 
        );


    VOID 
      KeStallExecutionProcessor(
        IN ULONG
      MicroSeconds                    // Specifies the number of microseconds to stall.
        );


    BOOLEAN 
      KeSetTimer(
        IN PKTIMER
      Timer,
        IN LARGE_INTEGER
      DueTime, //
    Specifies the absolute or relative time at which the timer is to expire. If the value of the DueTime parameter is negative, the expiration time is relative to the current system time. Otherwise, the expiration time is absolute. The expiration time is expressed in system time units (100-nanosecond intervals). Absolute expiration times track any changes in the system time; relative expiration times are not affected by system time changes.
        IN PKDPC
      Dpc  OPTIONAL
        );


    为了重复地调用CustomTimerDpc例程,使用KeSetTimerEx来设置定时器,并在Period参数中规定一个再次发生的间隔。除了这个附加的参数,KeSetTimerEx就象KeSetTimer一样。
  • 相关阅读:
    添加linux alias
    vs2019 switch语句快捷键列出枚举 及常用快捷键
    generic 泛型使用
    华为云 安装centos8.2
    linux 安装redis,mysql,netcore
    react按需加载
    工具类注册基本写法
    vue项目使用深拷贝
    react+less+antd 复习搭建(一)
    python 1 cmd进入工作
  • 原文地址:https://www.cnblogs.com/flying_bat/p/976402.html
Copyright © 2011-2022 走看看