Results 1 to 4 of 4

Thread: Dial-Up Networking

  1. #1

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Question

    I need to know how to delete all dial-up networking accounts. Anyone know how?
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Go to My Computer, Dial Up Networking, and select each item and press the Delete key.

    ...or did you mean from code?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    From code
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  4. #4
    Guest
    All the connection names are located in the registry.
    HKEY_CURRENT_USER\RemoteAccess\Profile

    I think this is how you delete them:

    Code:
    Private Declare Function RegDeleteKey Lib "advapi32.dll" _
    Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey _
    As String) As Long
    
    Private Declare Function RegCloseKey Lib "advapi32.dll" _
    (ByVal hKey As Long) As Long
    
    Private Const HKEY_CURRENT_USER = &H80000001
    
    Dim strKey As String
    Dim lRegResult As Long
    
    Public Sub DeleteKey(ByVal hKey As Long, ByVal strPath As String)
    lRegResult = RegDeleteKey(hKey, strPath)
    End Sub
    
    Private Sub Command1_Click()
    
    strKey = "RemoteAccess\Profile\ConnectionName"
    lRegResult = RegCloseKey(strKey)
    Call DeleteKey(strKey, HKEY_CURRENT_USER)
    
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width