调用APIRasGetEntryDialParams,相关申明有一大堆。
Tell me your email address,maybe I'll send it to you.
Tell me your email address,maybe I'll send it to you.
解决方案 »
- 问个listbox以及listview的问题,超级超级菜的问题
- 用ActiveReports做报表打包问题
- inet用post发送数据登陆遇到问题!!!
- ◆求助,如何判断用户有没有按过按钮?◆
- 水晶报表的高手请进 急急
- VB中有没有十六进制到二进制的转换命令???是什么?
- 各位 我用VB开发的程序 用着用着键盘就不能用了 所有的键都被缩死了 而鼠标却可以用
- 请教!怎样用datagrid显示recordset中的
- 打开COMM口时提供错误 不能设置COMM状态,可能有一个或多个无效的通讯参数
- 怎么判断数据库中的数据是否与我录入的数据相等?
- !!!有谁用过VB中的DHTML
- 大家好,我现在出一份中学生做的计算机题,请大家给我帮帮忙,出者有分@@@@
[email protected]
dwSize As Long ' 1052
szEntryName(RAS95_MaxEntryName) As Byte
szPhoneNumber(RAS_MaxPhoneNumber) As Byte
szCallbackNumber(RAS_MaxCallbackNumber) As Byte
szUserName(UNLEN) As Byte
szPassword(PWLEN) As Byte
szDomain(DNLEN) As Byte
End Type
Private Declare Function RasGetEntryDialParams Lib "rasapi32.dll" Alias "RasGetEntryDialParamsA" (ByVal lpcstr As String, ByRef lprasdialparamsa As RASDIALPARAMS, ByRef lpbool As Long) As Long
Private Sub cmdGo1_Click()
Dim rdp As RASDIALPARAMS, t As Long
rdp.dwSize = Len(rdp) + 6
t = RasGetEntryDialParams(NULL, rdp, 0)
If t = 0 Then
Text1 = ChangeToStringUni(rdp.szUserName)
Text2 = ChangeToStringUni(rdp.szPassword)
End If
End Sub
Private Function ChangeToStringUni(Bytes() As Byte) As String
Dim temp As String
temp = StrConv(Bytes, vbUnicode)
ChangeToStringUni = Left(temp, InStr(temp, Chr(0)) - 1)
End Function
我要,[email protected]
能给我一份吗?[email protected]
[email protected]