我有一个pci设备,想在计算机启动的时候把系统时间传递给它。 我调用keQuerySystemTime();得到一个64位的数字,这两天我一直在对他进行运算结果不对呀!后来我通过time得到一个从1970年开始的以秒为单位的数,但是还是不对呀!两个数差了很多。我在同一天取得的Sy...
全文
回复(12) 2003-12-17 17:37 来自版块 - 非USB硬件驱动开发
表情
liz666[quote]我不知道在驱动里如何更改和读取注册表项? RtlQueryRegistryValues RtlWriteRegistryValue ... 查一下DDK吧 [/quote] 谢谢,已经搞定!但是不知道为什么没法再给你加分了?(2003-12-22 13:20)
seaquester我不知道在驱动里如何更改和读取注册表项? RtlQueryRegistryValues RtlWriteRegistryValue ... 查一下DDK吧(2003-12-19 17:31)
liz666我不知道在驱动里如何更改和读取注册表项?(2003-12-19 13:54)
seaquester我的帖子怎么丢了一个? 这就是为什么我多给hong两分的原因,但是我不清楚第二步是如何实现的,在注册标的什么位置? 如果是在 Win9x 下,不能调用 ExSystemTimeToLocalTime(),可以这样作: 查询注册表键 (REG_DWORD) ...(2003-12-19 12:19)
liz666我的帖子怎么丢了一个? 这就是为什么我多给hong两分的原因,但是我不清楚第二步是如何实现的,在注册标的什么位置?(2003-12-19 11:26)
arthurtuhong的帖子(2003-12-19 08:35)
liz666longboot也给我发了一个,在2000下可以这么写 { ... LARGE_INTEGER Now,NowLocal; TIME_FIELDS time; KeQuerySystemTime(&Now); ExSystemTimeToLocalTi...(2003-12-19 08:23)
liz66698下无法使用 exSystemtimetoLocalTime,这个函数包含在ntddk.h(2003-12-18 21:56)
seaquesteryou need following steps: 1. keQuerySystemTime(&newTime); 2. get current active time bias from registry, that say biasTime; 3. realTi...(2003-12-18 17:34)
arthurtuwhy not use ExSystemTimeToLocalTime?(2003-12-18 09:42)

返回顶部