PPPoE and DUN Connections in VB.NET
Posted on 2004-08-28
I am trying to create a VB.NET program that does somewhat the same type of thing as the IEAK, only a much more customized version. I work for an ISP who offers cable, DSL, and dialup services (and much higher connections, but the CD is for home users mainly). The CD needs to be able to detect what version of Windows is being used (I'm sure that part is really easy...haven't searched for it yet though) and then display options based on that.
DSL requires a PPPoE connection and XP has this built in but anything below (2000/98/ME) do not. I've got the protocol ready to be installed but I don't know how to accomplish this. If the OS is XP I need to be able to create the correct connection type by having the user fill in their username and password, nothing more (I'll handle the rest). I've tried using INS files for this and it doesn't work. For whatever reason, even though I select WAN MiniPort as the "modem" to use it still sets the connection up on a regular modem and of course doesn't work.
I can create a dialup connection fine, just need to know how to write to a text file in a temp directory (create the directory if it doesn't exist) and then ocne the connection is installed I'll want to delete this.
That is the background information. What I need to be able to do is install a component of some sort (unless .NET offers the ability to create PPPoE somewhere in the framework?) that allows a user to type in user/pass and the connection is setup in XP. If they are using below that I need to install the protocol and then do the same thing - seamlessly create the connection. I also need to be able to write the text file for dialup (INS file actually) like mentioned above.
I've searched the site here and Google and am not finding anything that is really helping me out in this task.
Prefer VB.NET code but I can convert C# if need be.
Any help is much appreciated!!