简体   繁体   中英

How to set system time in a Windows WDM driver?

We are developing a GPS time sychronization hardware device. And we want write a Windows WDM driver for the device. To avoid the user level latency, we'd like set windows( XP/Vista/7) system time in the kernel driver level. Does anyone know how to achive that?

Thanks Xu Jun

Did you try NtSetSystemTime? I think it's undocumented.

http://undocumented.ntinternals.net/

See also http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/Time/NtQuerySystemTime.html

Yyou should use the Zw-prefix functions in your driver.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM