WinCE7 : 更改SNTP

1. 先檢查OSdesign內 reg.ini 資料夾是否有 timesvc REG

2.如果有把一串直接複製到platform.reg中

注意 :
; @CESYSGEN IF SERVERS_MODULES_SNTPSVC     
;
;
;    "server" - FQDN of sntp server, or list thereof (REG_SZ or REG_MULTI_SZ). If not given, server-only operation assumed.
;    "refresh" - period (in ms) between syncs with SNTP server. Ignored in server-only mode
;    "recoveryrefresh" - time (in ms) to next sync if last attempt failed. Ignored in server-only mode
;    "threshold" - interval (in sec) between time on SNTP server and current time when adjustment
;        is allowed. If the difference between SNTP server time and local system time is bigger,
;        update is ignored unless system clock is presumed incorrect (see below). Ignored in server-only mode
;    "ServerRole" - if 1, enables server operation.
;    "AutoUpdate" - if 1, enables automatic time updates by SNTP client. "server" must be specified.
;    "trustlocalclock" - if 0, system is presumed to not have RTC capabilities. If this is the case,
;        server multicast is disabled until clock sync with sntp server succeeds, and queries to the
;               server return "unreliable clock" flag. Also, the time synchronization is forced on wake-up.
;               If client is disabled, the clock is presumed trusted and this value is ignored
;    "multicast" - dword of ipv4 address of multicast (deprecated; for compatibility only)
;               or multi_sz of ipv4 and ipv6 multicast addreses. Default value below is for gateways.
;               224.0.0.1=all systems on the subnet
;               224.0.1.1=all NTP systems within router-defined scope
;               FF02::1=all nodes on the link
;               FF0X::101=NTP systems within site
;               "multicast"=dword:010000e0 ; == 224.0.0.1
;       "multicastperiod" - interval between subsequent multicasts.
;
[HKEY_LOCAL_MACHINE\Services\TIMESVC]
    "Dll"="sntpsvc.dll"
    "Order"=dword:99
    "Keep"=dword:1
    "Prefix"="NTP"
    "Index"=dword:0
    "server"=multi_sz:"pool.ntp.org","time.windows.com"  
    ;"server"=multi_sz:"tock.usno.navy.mil","time.windows.com"  

    "AutoUpdate"=dword:1
    "ServerRole"=dword:1
; by-weekly
    "refresh"=dword:48190800
; Every half-hour
    "recoveryrefresh"=dword:1B7740
; 1 day
    "threshold"=dword:5265C00
    "trustlocalclock"=dword:0
; @CESYSGEN IF CE_MODULES_IPNAT
; @CESYSGEN ENDIF CE_MODULES_IPNAT
; @CESYSGEN ENDIF SERVERS_MODULES_SNTPSVC

; @CESYSGEN IF SERVERS_MODULES_DSTSVC
; Have DST changes automatically enabled
[HKEY_LOCAL_MACHINE\Services\DSTSVC]
   "Dll"="dstsvc.dll"
   "Order"=dword:99
   "Keep"=dword:1
   "Prefix"="DST"
   "Index"=dword:0
   "UserProcGroup"=dword:2 ; run in microsoft group instead of the default group


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Clock]
"AutoDST"=dword:1
; @CESYSGEN ENDIF SERVERS_MODULES_DSTSVC


紅色標住起來的這幾段,要有完整的敘述 IF -------END IF 不然編譯會有問題
並且在橘色那段輸入你SNTP 的網址
儲存之後makeimg 就OK了

留言

熱門文章