当前位置:首页 » 操作系统 » pppoe源码

pppoe源码

发布时间: 2022-07-17 13:05:01

A. 宽带连接源代码(vs2008 的vb)

直接把sEntryName = "宽带连接3" sUsername = "用户名" sPassword = "密码" 比如说~~TEXT1.TEXT=sEntryName 一次类推~~这样不就出来拉~也就可以实现查宽带有能连接宽带~~监听你可以在加上一个API函数来监听~ Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) Private Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(7) As Byte End Type Private Type RASIPADDR a As Byte b As Byte c As Byte d As Byte End Type Private Type RASENTRY dwSize As Long dwfOptions As Long dwCountryID As Long dwCountryCode As Long szAreaCode(10) As Byte szLocalPhoneNumber(128) As Byte dwAlternateOffset As Long ipaddr As RASIPADDR ipaddrDns As RASIPADDR ipaddrDnsAlt As RASIPADDR ipaddrWins As RASIPADDR ipaddrWinsAlt As RASIPADDR dwFrameSize As Long dwfNetProtocols As Long dwFramingProtocol As Long szScript(259) As Byte szAutodialDll(259) As Byte szAutodialFunc(259) As Byte szDeviceType(16) As Byte szDeviceName(128) As Byte szX25PadType(32) As Byte szX25Address(200) As Byte szX25Facilities(200) As Byte szX25UserData(200) As Byte dwChannels As Long dwReserved1 As Long dwReserved2 As Long dwSubEntries As Long dwDialMode As Long dwDialExtraPercent As Long dwDialExtraSampleSeconds As Long dwHangUpExtraPercent As Long dwHangUpExtraSampleSeconds As Long dwIdleDisconnectSeconds As Long dwType As Long dwEncryptionType As Long dwCustomAuthKey As Long guidId As GUID szCustomDialDll(259) As Byte dwVpnStrategy As Long dwfOptions2 As Long dwfOptions3 As Long szDnsSuffix(255) As Byte dwTcpWindowSize As Long szPrerequisitePbk(259) As Byte szPrerequisiteEntry(256) As Byte dwRedialCount As Long dwRedialPause As Long End Type Private Type RASCREDENTIALS dwSize As Long dwMask As Long szUserName(256) As Byte szPassword(256) As Byte szDomain(15) As Byte End Type Private Declare Function RasSetEntryProperties Lib "rasapi32" Alias "RasSetEntryPropertiesA" (ByVal lpszPhonebook As String, ByVal lpszEntry As String, lpRasEntry As RASENTRY, ByVal dwEntryInfoSize As Long, ByVal lpbDeviceInfo As Long, ByVal dwDeviceInfoSize As Long) As Long Private Declare Function RasSetCredentials Lib "rasapi32" Alias "RasSetCredentialsA" (ByVal lpszPhonebook As String, ByVal lpszEntry As String, lpCredentials As RASCREDENTIALS, ByVal fClearCredentials As Long) As Long Private Sub Form_Load() Dim sEntryName As String, sUsername As String, sPassword As String sEntryName = "宽带连接3" sUsername = "用户名" sPassword = "密码" If Create_PPPoE_Connection(sEntryName, sUsername, sPassword) Then MsgBox "连接建立成功!" Else MsgBox "连接建立失败!" End If End Sub Function Create_PPPoE_Connection(ByVal sEntryName As String, ByVal sUsername As String, ByVal sPassword As String) As Boolean Create_PPPoE_Connection = False Dim re As RASENTRY Dim sDeviceName As String, sDeviceType As String sDeviceName = "WAN 微型端口 (PPPOE)" sDeviceType = "PPPoE" With re .dwSize = LenB(re) .dwCountryCode = 86 .dwCountryID = 86 .dwDialExtraPercent = 75 .dwDialExtraSampleSeconds = 120 .dwDialMode = 1 .dwEncryptionType = 3 .dwfNetProtocols = 4 .dwfOptions = 1024262928 .dwfOptions2 = 367 .dwFramingProtocol = 1 .dwHangUpExtraPercent = 10 .dwHangUpExtraSampleSeconds = 120 .dwRedialCount = 3 .dwRedialPause = 60 .dwType = 5 CopyMemory .szDeviceName(0), ByVal sDeviceName, Len(sDeviceName) CopyMemory .szDeviceType(0), ByVal sDeviceType, Len(sDeviceType) End With Dim rc As RASCREDENTIALS With rc .dwSize = LenB(rc) .dwMask = 11 CopyMemory .szUserName(0), ByVal sUsername, Len(sUsername) CopyMemory .szPassword(0), ByVal sPassword, Len(sPassword) End With Dim rtn As Long If RasSetEntryProperties(vbNullString, sEntryName, re, LenB(re), 0, 0) = 0 Then If RasSetCredentials(vbNullString, sEntryName, rc, 0) = 0 Then Create_PPPoE_Connection = True End If End If End Function

B. 求VB写的pppoe拨号客户端源码,能反馈错误代码的。急!

有易语言的 要不要

C. 怎么读懂路由器源代码

这只是访问路由是给出的网页代码,一些javascript、html,没有什么意义。

D. 如何查看TP-LINK路由器中保存的ADSL帐号

查看TP-LINK路由器中保存的ADSL帐号的操作方法:

  1. 打开电脑,在浏览器地址栏输入192.168.0.1或192.168.1.1,输入登陆账号和密码(路由器的登陆地址、路由器的登陆用户名以及登陆密码在路由器的底部有提示)进入路由器管理界面;

  2. 在左菜单栏点击系统工具,选择“备份载入设置”;

  3. 在右侧对话框中点击“备份配置文件”;

  4. 保存备份文件,一般保存桌面即可;

  5. 用写字板或者记事本打开此备份文件,查看账号、密码;

  6. 如果打不开或者是乱码,用网络搜索一个RouterPassView软件;

  7. 下载完成后解压,然后用此软件打开备份文件;

  8. 查看成功获取到宽带的帐号、密码。

E. 需要一个c#的pppoe拨号程序源代码

dialer in-band
dialer pool 1
dialer idle-timeout 0
dialer-group 1
encapsulation ppp
ppp chap password
ppp chap hostname
ppp pap sent-username password
ip address negotiated
mtu 1492
ip tcp adjust-mss 1300
ip nat outside
service-policy output qos
exit

热点内容
做解压橡皮 发布:2025-01-21 15:03:06 浏览:991
双系统win访问mac 发布:2025-01-21 14:53:52 浏览:485
安卓车机系统如何安装carplay 发布:2025-01-21 14:52:24 浏览:590
sql操作手册 发布:2025-01-21 14:46:08 浏览:312
青橙脚本 发布:2025-01-21 14:44:05 浏览:219
东风本田crv时尚版是什么配置 发布:2025-01-21 14:20:04 浏览:219
安卓如何多开软件每个机型不一样 发布:2025-01-21 14:15:29 浏览:501
iis配置php5 发布:2025-01-21 14:08:19 浏览:274
凯叔讲故事为什么联系不到服务器 发布:2025-01-21 13:56:50 浏览:387
linux镜像文件下载 发布:2025-01-21 13:34:36 浏览:218