如何在WINCE中添加WebServer組件
wince 5.0有自帶的Web server組件.第三方比較好用的有GoAhead Web Server ,這是開(kāi)源軟件,而且支持Linux.
一、wince 5.0自帶的Web server組件
步驟一:
在PB中添加以下組件:
Catalog item Sysgen variable Location in Catalog
Web Server (HTTPD) SYSGEN_HTTPD Communication Services and Networking\Servers
Web Server Administration ISAPI SYSGEN_ISAPI_CONFIG Communication Services and Networking\Servers\Web Server (HTTPD)
NTLM SYSGEN_AUTH_NTLM Security\Authentication Services (SSPI)
Internet Connection Sharing (ICS) SYSGEN_GATEWAY Communication Services and Networking\Networking Features
Reference Gateway User Interface
SYSGEN_GATEWAY_UI
Communication Services and Networking\Networking Feature
步驟二:
在project.reg中添加:
[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/WebAdmin]
@=“\\windows\\httpdadm.dll”
“a”=dword:0
[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/BasicOnly]
@=“\\”
“a”=dword:1
“Basic”=dword:1
“NTLM”=dword:0
“dirbrowse”=dword:1
[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/NTLMOnly][!--empirenews.page--]
@=“\\”
“a”=dword:1
“Basic”=dword:0
“NTLM”=dword:1
“dirbrowse”=dword:1
[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/BothAuth]
@=“\\”
“a”=dword:1
“Basic”=dword:1
“NTLM”=dword:1
“dirbrowse”=dword:1
步驟三:
Sysgen,然后下載NK到設(shè)備.設(shè)置好PC和設(shè)備的IP,打開(kāi)PC上的瀏覽器,輸入http://設(shè)備IP,即可得到配置頁(yè)面.