General discussion

Locked

Custom RAS dialer...

By steven_v_brown ·
I really like your site. It has provided insights that I have not found elsewhere.

I have a slight issue I need a little direction...

------------------------

I work for a VERY small company that has some stores that attached via MicrosoftNT RAS.

To cut long distance cost I have implemented Microsoft PPTP "VPN".

In order to establish a "VPN" connection RAS must make two physical connections.
1) Using the Modem, to the RAS entity called [ISP]
2) Using the PPTP port, to the RAS entity called [VPNInternet]
(These entities are located @ %SystemRoot%\System32\RAS\rasphone.pbk )

To do this I wrote an VB application that uses "RASDIAL.EXE" then later used "RasApi32.DLL" to do this launch and administer the RAS ISP connection and RAS VPNInternet connection.

What I need to do now is to take this a one more step,
By creating a custom dialer that uses the existing "RasApi32.DLL" calls but will launch my application instead on the defaults (RASPHONE.EXE) in instanceson AutoDial and Internet Explorer dialing...

Do you have any suggestions?

Thank you!

Steven V Brown
svbrown@tandk.com
steven_v_brown@hotmail.com

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Custom RAS dialer...

by pVp In reply to Custom RAS dialer...

Do you need RASPHONE.EXE for anything?

If not, just name your app RASPHONE.EXE instead of RASDIAL.EXE.

To be on the safe side, I'd rename rasphone.exe, then put my rasdial.exe in the same directory.

Collapse -

Custom RAS dialer...

by steven_v_brown In reply to Custom RAS dialer...

I still need to keep the RASPHONE and all of its functionality intact for manual processing and debuging.

I need the specifications as to where to specify a custom dialer and all the switches and options that NT sends a RAS applicaiton...

Collapse -

Custom RAS dialer...

by Lo In reply to Custom RAS dialer...

Hi - May have missread this but ...

Rather than trying to create a custom dialler that calls an non-standard (your program) image, why not just create VB to call the applications. I think the RAS and the dialler can be activated and controlled by the VB app. That lets you get account, password, target, etc. from the user and drive the application. The process would be:
1) start you vb app
2) get data from user
3) luanch the dialer for the RAS connection
4) luanch the PPTP application5) do session
6)... tear down anything started (reverse order)

Can't remember what vb calls it (been a while since I did vb) but you can start a application and send data to the window 'as if entered from the keyboard' from a vb program. I think you can start the window hidden, system modal, etc. so that the user can't get control and do things that cause problems to the app.

Collapse -

Custom RAS dialer...

by steven_v_brown In reply to Custom RAS dialer...

This responce is my question restated. Does anyone have the VB 6.0 specs for RasApi32.DLL or a class that has these functions?

Collapse -

Custom RAS dialer...

by steven_v_brown In reply to Custom RAS dialer...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums