如何禁用自动与互联网时间服务器同步?
问题描述:
如何通过代码自动禁用与Internet时间服务器(日期和时间属性-> Internet时间)的同步?
有没有可用的API函数?
有人可以给我一个吗?
请注意
Anandakumar.R
Hi,
how to disable automatically synchronize with internet time server(Date and time Properties->Internet time) through Code?
Is there any API function Available?
Can any one give me a sample code for this?
Regards
Anandakumar.R
答
也许有更好的解决方案,但是有一个选择将停止Windows Time服务.
http ://www.dotnetspider.com/resources/865-How-start-stop-windows-services-programmati.aspx
致谢,
Jeff
There may be a better solution but one option would be to stop the Windows Time service.
http://www.dotnetspider.com/resources/865-How-start-stop-windows-services-programmati.aspx
Regards,
Jeff