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

Answers


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.


Need Your Help

How to determine what in my script is blocking my HTML rendering?

javascript html rendering blocking

I have a web application that uses quite a bit of JavaScript.

What to parse data with <![CDATA[]]> in XML File?

php xml

i have used one xml file in that file there is one tag like