如何在WINCE中添加WebServer组件
扫描二维码
随时随地手机看文章
wince 5.0有自带的Web server组件.第三方比较好用的有GoAhead Web Server ,这是开源软件,而且支持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到设备.设置好PC和设备的IP,打开PC上的浏览器,输入http://设备IP,即可得到配置页面.