English 中文(简体)
What is the proper way to disable daylight savings auto-adjustment on WinCE?
原标题:

I want to programatically uncheck the "automatically adjust the clock for daylight savings" check box from a compact framework application running in WinCE.

Google searches indicate that you can do this in Windows by setting the DisableAutoDaylightTimeSet value under the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation key. This key doesn t appear to exist in WinCE. Is there a different way to do this in WinCE?

最佳回答

The best answer I can find on this is to use the "HomeDST" registry key:

http://msdn.microsoft.com/en-us/library/bb202749.aspx

There is an "AUTODst" registry key also which seems to automatically adjust, but that appears to depend on SNTP. If anyone knows a way to automatically adjust for DST in WinCE without using SNTP please comment.

问题回答

You can disable DST with this command tzutil /s Pacific Standard Time_dstoff.





相关问题
WinCE vs. Win32 dlls

I have some COM and some native dlls that are compiled for a Win CE device that I have. I would like to take a look at them, so I can create an application that references them and extends the ...

Why is type_info declared outside namespace std?

I m using VS2005 and the MS implementation of STL. However, the class type_info in is declared outside of "namespace std". This creates some problems for third party libs that excepts to find a std::...

热门标签