how to start & stop VPN connection in custom application?

S

Sharoon Shetty K [MSFT]

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.
 
J

Jianfeng Chen

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.
 
J

Jianfeng Chen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top