Actually it appears that timesvc.dll was retired on Windows Embedded Compact 7. I found on the MC92N0 scanner I have that it uses sntpsvc.dll as the DLL driving NTP. However I didn't want to have more than one configuration for my scanners because I have MC9190-G on CE6 and MC92N0 on CE7 in my fleet. I know a little about registry files so I actually tested a theory I had about using a multi string registry entry and it seems to work so far. The code is below:
REGEDIT4 ;Time related registry Settings [HKEY_LOCAL_MACHINE\Services\TIMESVC] "UserProcGroup"=dword:00000002 "Flags"=dword:00000010 "multicastperiod"=dword:36EE80 "threshold"=dword:5265C00 "recoveryrefresh"=dword:36EE80 "refresh"=dword:5265C00 "Context"=dword:0 "Autoupdate" = dword:1 "server" = multi_sz:"tock.usno.navy.mil","time.windows.com" "ServerRole" = dword:0 "Trustlocalclock" = dword:0 "Dll"="=multi_sz:"sntpsvc.dll","timesvc.dll" "Keep"=dword:1 "Prefix"="NTP" "Index"=dword:0 ;Time related registry Settings [HKEY_LOCAL_MACHINE\nls] "DefaultLCID" = dword:00000809 [HKEY_LOCAL_MACHINE\nls\overrides] "LCID" = dword:00000809 ;Time related registry Settings ; TimeZone settings for Eastern US, w DST checkbox checked [HKEY_LOCAL_MACHINE\Time] "TimeZoneInformation"=hex:\ 2c,01,00,00,45,00,61,00,73,00,74,00,65,00,72,00,6e,00,20,00,53,00,74,00,61,\ 00,6e,00,64,00,61,00,72,00,64,00,20,00,54,00,69,00,6d,00,65,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0b,00,00,00,01,\ 00,02,00,00,00,00,00,00,00,00,00,00,00,45,00,61,00,73,00,74,00,65,00,72,00,\ 6e,00,20,00,44,00,61,00,79,00,6c,00,69,00,67,00,68,00,74,00,20,00,54,00,69,\ 00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00,c4,ff,ff,ff ;Time related registry Settings [HKEY_LOCAL_MACHINE\Time Zones] "@": REG_SZ @="Eastern Standard Time" ;Time related registry Settings [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Clock] "AutoDST" = dword:00000001