Interview Question in Visual Studio 2005


 

Interview Question :: Making Internet Connection using Auto Dial up Using .net cSharp

Hi,

I want to create dialup network and/or auto connect to internet from within my application.

If there is not already created dial up network then i need to create new one. If there is no modem installed, make warnings.

I need to do all these on Visual Studio 2005/2003 desktop application using c#.



I have done so many R&D's on it, but unable to achieve what exactly i want.

I tried InternetDial method of wininet.dll to connect internet but It opens the default dial up dialog and i need to connect manually. But i want it to be connected automatically without clicking to connect within windows dial up.
I tried to use InternetAutoDial but it didn't get success.



I tried IO.Port class in VS 2005 and tried to pass AT commands, some response i got from modem but unable to connect.

Could you please tell me whether i m in right way or not?
I am i need proper sources of guide like books or your help or any sample code etc.

Thank you
by ksk