半天RAS总结
来源:互联网 发布:淘宝登录入口 编辑:程序博客网 时间:2024/04/28 00:51
皖
===========================================================================
用RAS操作ADSL。
①.RasEnumEntries
The RasEnumEntries function lists all entry names in a remote access phone book.
②.RasSetEntryProperties
The RasSetEntryProperties function changes the connection information for an entry in the phone book or creates a new phone-book entry.
函数原型:
DWORD RasSetEntryProperties(
__in LPCTSTR lpszPhonebook,
__in LPCTSTR lpszEntry,
__in LPRASENTRY lpRasEntry,
__in DWORD dwEntryInfoSize,
__in LPBYTE lpbDeviceInfo,
__in DWORD dwDeviceInfoSize
);
第三个参数参照MSDN。
除了上面(MSDN)说的几个成员需要提供外。
还有
dwSize 推荐:sizeof(RASENTRY)-------------此成员不设置函数会返回632
dwfOptions2 推荐:RASEO2_Internet---------见图2.
dwfNetProtocols 推荐:RASNP_Ip------------见图1.
对于要求的dwfOptions 推荐:RASEO_RemoteDefaultGateway(见图2.)|RASEO_ModemLights(见图3.)
③.RasDial
The RasDial function establishes a RAS connection between a RAS client and a RAS server. The connection data includes callback and user-authentication information.
④.RasEnumConnections
The RasEnumConnections function lists all active RAS connections. It returns each connection's handle and phone-book entry name.
⑤.RasHangUp
The RasHangUp function terminates a remote access connection. The connection is specified with a RAS connection handle. The function releases all RASAPI32.DLL resources associated with the handle.
图1.
图2.
图3.
- 半天RAS总结
- RAS
- RAS
- RAS
- vector 常用函数方法 查了半天 总结一下
- RAS算法
- RAS 函数
- RAS简介
- RAS详解
- ras 加密
- RAS函数
- RAS理解
- RAS加密
- RAS加密
- RAS加密
- 半天假
- 半天不过
- web发部了,弄了半天,虽然挺简单的,总结一下,jsp和tomcat
- nohup命令详解~
- Linq to sql增删改查
- 学习cad
- vc字节对齐
- Asterisk的特性
- 半天RAS总结
- Swing代码分析(移动组件一)
- 最新的25个最危险的编程错误
- 概述:位图索引在数据仓库中的作用- Oracle 数据仓库- CNOUG
- 了解 JUnit 核心类、接口及生命周期
- Qt Creator使用体会与小技巧
- 日学者反对谷歌书籍数字化 尊重地区特殊性
- IP检测
- 索引在数据库中的应用分析