关于wince telnet组件的一篇博客

关于wince telnet组件的一篇博客
The CE Telnet Server

A lot of folks (even in the CE team) don't realize that Windows CE has a telnet server as an optional component. This is not something that we see you putting in shipping devices. It is a very cool tool during your initial development of your platform, however.

If your device is hooked up to platform builder (PB) via a debug connection, you can use the target shell of course. But I prefer telnet server. Telnet is just a wrapper around CE's cmd.exe. CE's cmd has builtin file manipulation commands like WinXP cmd, including the capability to do file redirection and run .bat files. You can also write your own apps that call wprintf() or scanf() and have them interact across a telnet session. IPConfig, ping, etc... are tools that are command line based. Yes, you can run them with a '-d' to have the output redirected to the debug console. But I find it easier using the standard telnet than having to look at all the windows in PB. Further, if your device isn't hooked up to PB then you're out of luck on that front.

OK I'm biased heresince I wrote the telnet server :). But most people that start using it don't go back..

To get telnet server, add it to your development only platform. It's SYSGEN_TELNETD. There are security concerns with any telnet server, so REMOVE IT BEFORE RTM'ng your platform unless you have a very very good reason not to. If you want to be lazy (development only!) and remove the password check then add these registry entries.

[HKEY_LOCAL_MACHINE\COMM\TELNETD]
"UseAuthentication"=dword:0
"IsEnabled"=dword:1

Happy telneting. Oh, and if it isn't clear already, this isn't something you probably want to ship.

[Author: John Spaith]

将上面的项写到project.reg中,make image,再次登录telnet就不需要密码了。但是作为一个安全的系统需要能够有认证保护,怎么加用户和密码还没有搞定,希望知道的朋友指导一下。
原文地址 http://blogs.msdn.com/cenet/archive/2004/09/30/236426.aspx

[HKEY_LOCAL_MACHINE\COMM\TELNETD]
"UseAuthentication"=dword:0
"IsEnabled"=dword:1

;Share files
;[HKEY_LOCAL_MACHINE\Services\Smbserver]
;"AdapterList"="VMINI1"

;[HKEY_LOCAL_MACHINE\Drivers\Service\SMBServer]
; "AdapterList"="PCI\\DM90001"

[HKEY_LOCAL_MACHINE\Services\SMBServer]
"AdapterList"="DM90001"


[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Root]
"Type"=dword:0
"Path"="\\Windows"
; "UserList"="Jacky,Rose,Terry"
"UserList"="admin"


[HKEY_LOCAL_MACHINE\Ident]
"Name"="FooBar"
"Desc"="Sample File Share Demo"
"OrigName"="WinCEDevice"

;[HKEY_LOCAL_MACHINE\Comm\Redir]
; "DefaultDomain"="REDMOND"


[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"NoSecurity"=dword:1
"UseAuthentication"=dword:0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值