1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to create a RAS phone book entry with out dialog boxes

Discussion in 'Win32' started by i9processor, Jun 30, 2012.

  1. i9processor

    i9processor New Member

    Jun 30, 2012
    Likes Received:
    Trophy Points:
    I found RasCreatePhonebookEntry to create a phone book entry but in SDK its mentioned as

    "This function has been deprecated as of Windows Vista and its functionality has been replaced by RasDialDlg"

    So is there any other way to create a new phone book entry with out promting to the user which supports in all versions of Windows?

    And if RasCreatePhonebookEntry itself can be used for all versions of windows to create a new phone book entry, how to set the value of "Preferred COM port" option using "RASENTRY" structure? I didnt find any parameter in RASENTRY STRUCTURE to set the preferred port..

    I want to set the following parameters in phone book :

    PreferredDevice=Communications cable between two computers #5

    Device=Communications cable between two computers #5

    How to set the above parameters programatically by creating a new entry in phone book.

Share This Page