如何避免获取“网络凭据”? Ras Dialer的对话框? [英] How can I avoid getting the "Network Credentials" dialog for a Ras Dialer?

查看:87
本文介绍了如何避免获取“网络凭据”? Ras Dialer的对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从代码中启动Ras Dialer,如下所示:
Rnaapp.exe -n -p -m -eMyConnection

但我收到了输入用户名和密码对话框。
我也试过RasDial()为userName和Password传递空字符串但也得到了Dialog。

我的应用程序需要在没有用户干预的情况下运行:
我怎么能避免获得"网络凭证" Ras Dialer的对话框?

解决方案

如果您使用的是.NET语言,可以查看CodePlex上的DotRas项目。除非您指示它在事件中显示某些内容,否则在那里公开的RasDialer组件不需要任何用户干预。


http://www.codeplex.com/DotRas


I am launching from code the Ras Dialer as follows:
Rnaapp.exe -n -p -m -eMyConnection

But I am getting the Enter User Name and password Dialog.

I tried also RasDial() passing empty strings for userName and Password but also got the Dialog.

My application needs to run without user intervention:
How can I avoid getting the "Network Credentials" dialog for a Ras Dialer?

解决方案

If you're using a .NET language you can check out the DotRas project on CodePlex. The RasDialer component exposed there does not require any user intervention unless you instruct it to display something in the events.

http://www.codeplex.com/DotRas


这篇关于如何避免获取“网络凭据”? Ras Dialer的对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆