Re: How to control in-built SNTP Service IN Windows Ce 5.0 Programatic

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The OP may be having difficulty getting the service to actually run because
the documentation for the registry settings is a little hazy. I thought I
gave this list previously, but maybe not. Here are the registry values that
you should set (all of them, to something suitable), to allow the service to
run as a client:

"Server" - the server or list of servers to sync with

"Refresh" - how often to check for the need to update the clock

"RecoveryRefresh" - when connection to all servers fails, how long to wait
to retry

"AutoUpdate" - set to 1 to have the service update the clock (pretty
useless if you don't set it)

"Threshold" - If the local clock is trusted, the maximum offset from the
server that will allow the local clock to be updated. That is, if the local
clock is different from the server by more than this amount and the local
clock is trusted (below), the local clock will not be updated. If it is
different by less than this value or if the local clock is untrusted, it
will be updated.

"TrustLocalClock" - If set to 1, the local clock will only be set if the
time is way off from the server. If set to 0, the local clock is generally
treated as "wrong" and updated.

I think that's the list...

Paul T.

"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
news:uMnY3obNIHA.4684@xxxxxxxxxxxxxxxxxxxxxxx
What part isn't working? It should be a simple Open/Ioctl/Close set of
calls. The link you reference in native code, so you obviously have to
create a managed version. You could also just query the time server
directly and set your clock.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com



"Manish Bafna" <ManishBafna@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0CF3BF8E-D8B7-42E3-85EF-BE8F6C471ADD@xxxxxxxxxxxxxxxx
Hi,
It is since 8 to 10 days i am trying to configure SNTP
Service(programatically) in windows CE 5.0 as suggested by eMVP in this
newsgroup.But code sample given in below msdn link for SNTP Service
Configuration Code Sample is neither compiling nor it is working:
http://msdn2.microsoft.com/en-us/library/ms899593.aspx
Please help me out as how to control in-built SNTP Service in windows ce
5.0
through code.That is on button click i want my clock in windows ce 5.0 to
synchronize with time servers.
Thanks in advance for replying(as always)
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.





.



Relevant Pages

  • Re: Isolated Network Drift Problem
    ... they need some type of time reference if the master server becomes ... without a local clock reference will be able to provide time to NTP ... Isn't having an "apparently" synchronized NTP server better than ...
    (comp.protocols.time.ntp)
  • Re: Rejecting Good Peers
    ... When I say "servers" I mean the ntpd daemons on each host. ... 'Server' is unfortunately an ambiguous term and I thought I'd head off ... that are due to the old configuration would have no reason to go away. ... Orphan and local clock are mutually incompatible! ...
    (comp.protocols.time.ntp)
  • Re: Linux NTP server problems serving time.
    ... > server us.pool.ntp.org ... This can be dangerous as the local clock may be assumed to be the ... true chimer and exclude the real true chimer. ... It's abandonded lovejoy. ...
    (comp.protocols.time.ntp)
  • Re: ntp clients out of sync with server
    ... clients begin to sync to its local clock, not the server. ... The ntp.conf on all 3 clients is, ... The "clients" should not be using the Undisciplined Local Clock. ...
    (comp.protocols.time.ntp)
  • Re: NTPD on Windows NT4
    ... It is using a well known, long standing, broken server. ... You should only consider configuring a local clock if you serve time to ... Windows is a poor choice for an NTP server, ...
    (comp.protocols.time.ntp)