WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Modems and Dial-up Networking

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Change and Open the Properties for a Particular Dialup Connectioid

Keywords: 	 open the properties for a particular dialup connectioid

Question:

  1. In Win 95, I can create the connectoid for Dial-up networking but when I connect using it, the system tries to login to the network. I need a way to modify the properties under the Server Type tab of the Dial-up connection.

  2. I can't figure out how to open the dial-up networking window let alone how to highlight the correct connectoid.

Answer:

  1. I use the code below to create the dial-up network connectoid. I looked in the registry but did not find anything referring to the Server Type settings. I could use the sendkeysto commands to make the changes but I can not figure out how to get to the properties page of a dial-up connector.
    Run("rundll32.exe"," rnaui.dll,RnaWizard")
    WinWaitExist("Welcome to",2)
    SendKeysTo("Welcome to","!n") 
    
    SendKeysTo("Make New Connection",ConnName)
    SendKeysTo("Make New Connection","!n")
    SendKeysTo("Make New Connection",AreaCode)
    SendKeysTo("Make New Connection","{tab}")
    SendKeysTo("Make New Connection",Number)
    SendKeysTo("Make New Connection","!n")
    SendKeysTo("Make New Connection","{enter}")
    
  2. Running dialup networking:
    Run("explorer.exe","::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{992CFFA0-F5 57-101A-88EC-00DD010CCC48}")
    

  3. To open the properties for a particular dialup connectoid, I have found that a combination of HKEY_CURRENT_USER\RemoteAccess\Addresses[Connection Name] and HKEY_CURRENT_USER\RemoteAccess\Profiles[Connection Name] contain all of the settings of the dialog boxes in a bitmapped format.

    For example, to turn on the 'logon to Network' checkbox it is:

    HKEY_CURRENT_USER\RemoteAccess\Addresses[Connection Name] position 54.

    The valid values are EC = Logon, E8 = Deselect 'Logon to network'.

    Under profiles, all of the TCP/IP settings are also bitmapped. Get this, there are in semi reverse order. Values are Hex.

    ;Ask MicroSoft why the positions are in REVERSE
    Poct1 = ('24') ;Primary WIN Octet 1 position
    Poct2 = ('23') ;Primary WIN Octet 2 position
    Poct3 = ('22') ;Primary WIN Octet 3 position
    Poct4 = ('21') ;Primary WIN Octet 4 position
    Soct1 = ('28') ;Secondary WIN Octet 1 position
    Soct2 = ('27') ;Secondary WIN Octet 2 position
    Soct3 = ('26') ;Secondary WIN Octet 3 position
    Soct4 = ('25') ;Secondary WIN Octet 4 position
    
    In other words, the primary WINS Address is positions 24,23,22,21, the secondary is: 28,27,26,25. Additionally the Secondary DNS would be 20,19,18,17. primary would be 16,15,14,13

    For others, use regmon and put in values like 1.2.3.4 and 5.6.7.8 and then find them (in reverse order)


Article ID:   W14870
File Created: 2001:11:08:12:40:42
Last Updated: 2001:11:08:12:40:42