Tatsächlich scheint es, dass timesvc.dll unter Windows Embedded Compact 7 stillgelegt wurde. Ich habe auf dem Scanner MC92N0 gefunden, dass ich sntpsvc.dll als DLL-Treiber für NTP verwendet. Ich wollte jedoch nicht mehr als eine Konfiguration für meine Scanner haben, da ich MC9190-G für CE6 und MC92N0 für CE7 in meiner Flotte habe. Ich kenne mich ein wenig mit Registrierungsdateien aus, also habe ich tatsächlich eine Theorie getestet, die ich über die Verwendung eines Registers mit mehreren String-Registern hatte, und es scheint bisher zu funktionieren. Der Code ist unten:
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