how to start & stop VPN connection in custom application?

  • Thread starter Thread starter Jianfeng Chen
  • Start date Start date
You can use RAS APIs [RasDial, RasHangUp].

--

Thanks
Sharoon
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thank you for the reply.

I can make the VPN connection with VB sample in Microsoft's Platform SDK
now,
but the C# version failed with the following error:

Error 621, The system could not open the phone book file.

My computer's Win2k pro with sp4.
any suggestions?
Thanks again.


Sharoon Shetty K said:
You can use RAS APIs [RasDial, RasHangUp].

--

Thanks
Sharoon
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.

Jianfeng Chen said:
or wirte my own connection manager under windows 2000?

Thanks.
 
I solved the problem by myself.
need to write down the phone book path & name for rasdial.
but it's not nessessary to do it with VB6.
i don't know the reason.

Thanks.


Jianfeng Chen said:
Thank you for the reply.

I can make the VPN connection with VB sample in Microsoft's Platform SDK
now,
but the C# version failed with the following error:

Error 621, The system could not open the phone book file.

My computer's Win2k pro with sp4.
any suggestions?
Thanks again.


Sharoon Shetty K said:
You can use RAS APIs [RasDial, RasHangUp].

--

Thanks
Sharoon
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.

Jianfeng Chen said:
or wirte my own connection manager under windows 2000?

Thanks.
 
Back
Top