How to automate a dialup connection?

Discussion How to automate a dialup connection?

  • Saturday, April 21, 2012 3:08 PM
     
     

    Hi all,

    I developed a device driver which will create a virtual com port whenever my embedded device is connected to the USB port of the laptop.

    Now i need to create a Auto Dial-Up or new network connection with the virtual com port created whenever the device gets plugged into the laptop.

    1.So i have to trigger an event upon USB connection detection

    2. The triggered event should create an auto dial up connection with the vitual port created(eg:COM11).

    Steps to create a New Auto Dial Up connection:
    ----------------------------------------------

    1) Click on the Windows “Start” button.
    2) Click on “Control Panel”.
    3) Click on “Network connections”.
    4) Click on “Create a new connection”.
    5) Select the option “Set up an advanced connection”.
    6) Select the option    “Connect directly to another computer”.
    7) Select the “Guest” option.   Give a name to the USB network connection (e.g. “Connection Name”). 
    8) **Select the last COM port created on the PC corresponding to    “Communications Port (COM X)”**.

    9) Select the option “All users”.
    10) Click  on “Add a shortcut to this connection to my desktop”, then “ok”.

     
    What are the ways I can achieve an auto dial up connection??

    The above can be done in any programming language, preferabally "C/C++", Since I know only those two!!!

    Please provide your suggestions!!!

     

    Regards,
    Sethu

All Replies

  • Saturday, April 21, 2012 3:11 PM
     
     

    Hi all,

    I developed a device driver which will create a virtual com port whenever my embedded device is connected to the USB port of the laptop.

    Now i need to create a Auto Dial-Up or new network connection with the virtual com port created whenever the device gets plugged into the laptop.

    1.So i have to trigger an event upon USB connection detection

    2. The triggered event should create an auto dial up connection with the vitual port created(eg:COM11).

    Steps to create a New Auto Dial Up connection:
    ----------------------------------------------

    1) Click on the Windows “Start” button.
    2) Click on “Control Panel”.
    3) Click on “Network connections”.
    4) Click on “Create a new connection”.
    5) Select the option “Set up an advanced connection”.
    6) Select the option    “Connect directly to another computer”.
    7) Select the “Guest” option.   Give a name to the USB network connection (e.g. “Connection Name”). 
    8) **Select the last COM port created on the PC corresponding to    “Communications Port (COM X)”**.

    9) Select the option “All users”.
    10) Click  on “Add a shortcut to this connection to my desktop”, then “ok”.

     
    What are the ways I can achieve an auto dial up connection??

    The above can be done in any programming language, preferabally "C/C++", Since I know only those two!!!

    Please provide your suggestions!!!

     

    Regards,
    Sethu

  • Tuesday, April 24, 2012 6:16 AM
    Moderator
     
     
    Hi Sethu,
    This issue is not related to Windows Forms at all. However, I can’t find any forum will support case like this.
    After some research, I found that we can establish a Dial-Up connection by command line in Windows Vista, so a possible word around could be execute the  command by code. You can try it.
    For more details, see http://support.microsoft.com/kb/555935.
    Best Regards,

    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us