Thread: Auto Dial Up or Network connection creation

  1. #1
    Registered User
    Join Date
    Apr 2012

    Auto Dial Up or Network connection creation

    Hi all,

    I have 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 an 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


    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”.

    Please provide your suggestions!!!

  2. #2
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Did you try google? I found about 50 sites that looked vaguely useful when I searched for "programmatically create dial up connection". Admittedly some were old or less relevant, but there's plenty of material out there on this.

    I do find it a bit suspicious that you can create a virtual com port for an embedded USB device but can't work out how to create a new dial-up connection.

    P.S. Don't double-post.

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

  3. #3
    Registered User
    Join Date
    Apr 2012
    Hi Ledow,

    Thanks for your reference... I almost spent a day in googling before posting here.... Even if you have a look, you will understand all the google search links are based on .net which is completely out of area for me.... I am planning to do it in C language.. Still, can help me in providing a proper reference to move further....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dial-Up or New network connection creation
    By I9Processor in forum Windows Programming
    Replies: 0
    Last Post: 04-21-2012, 08:46 AM
  2. losing network connection
    By Elkvis in forum Tech Board
    Replies: 0
    Last Post: 11-19-2008, 12:45 PM
  3. Bluetooth Dial-up network profile with AT commands
    By BrownB in forum Networking/Device Communication
    Replies: 0
    Last Post: 06-29-2005, 02:47 AM
  4. Determining status of a network connection?
    By Cat in forum Windows Programming
    Replies: 0
    Last Post: 06-04-2003, 05:30 PM
  5. exe a dial up connection
    By ukcpaul in forum Windows Programming
    Replies: 1
    Last Post: 02-07-2002, 04:04 PM

Tags for this Thread