我们正在开发一种 GPS 时间同步硬件设备。我们想为该设备编写一个 Windows WDM 驱动程序。为了避免用户级延迟,我们希望在内核驱动程序级别设置 windows(XP/Vista/7) 系统时间。有谁知道如何做到这一点?
谢谢徐军
我们正在开发一种 GPS 时间同步硬件设备。我们想为该设备编写一个 Windows WDM 驱动程序。为了避免用户级延迟,我们希望在内核驱动程序级别设置 windows(XP/Vista/7) 系统时间。有谁知道如何做到这一点?
谢谢徐军
你试过 NtSetSystemTime 吗?我认为它是无证的。
http://undocumented.ntinternals.net/
另请参阅 http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/Time/NtQuerySystemTime.html
你应该在你的驱动程序中使用 Zw 前缀函数。