Modifying Options of an existing connectoid
Keywords: edit options connectoid entry
Question:
I need to modify the terminal after dial option on an existing Connectiod. How would you do that using the RAS extender?Answer:
;an example, using the RAS Extender, to modify the 'Options' of an existing connectoid.... AddExtender("wwras34i.dll") RASEO_TerminalAfterDial = 128 list = RasItemize() entryname = AskItemlist("Choose a RAS entry",list,@TAB,@UNSORTED,@SINGLE) allinfo=rasEntryInfo(entryname,'all') Arr_Values = Arrayize(allinfo,"|") Valuecount = ArrInfo(Arr_Values,6) elementlist="size|options|countryid|countrycode|areacode|phonenumber|devicename|devicetype|" elementlist2="ipaddr|ipaddrdns|ipaddrdnsalt|ipaddrwins|ipaddrwinsalt|framesize|netprotocols|framingprotocol|script|autodialdll|autodialfunc|" elementlist3="subentries|dialmode|dialextrapercent|dialextrasampleseconds|hangupextrapercent|hangupextrasampleseconds|idledisconnectseconds|" elementlist4= "type|encryptiontype|customauthkey|customdialdll|vpnstrategy" List_Elements = strcat(elementlist,elementlist2,elementlist3,elementlist4) Arr_Elements = Arrayize(List_Elements,"|") Elementcount = ArrInfo(Arr_Elements,6) ;initalize structure ***IMPORTANT** RasEntrySet("","") For x = 0 to Valuecount-1 if StrLower(Arr_Elements[x]) == "options" Arr_Values[x]= Arr_Values[x]|RASEO_TerminalAfterDial endif RasEntrySet(Arr_Elements[x],Arr_Values[x]) Next ;Add New entry RasEntryAdd(entryname, "", "", 0, 0) Message("Done","Ras Entry Modified") exit
Article ID: W15086