Start/Stop RAS from VB application ????????? 
Author Message
 Start/Stop RAS from VB application ?????????

I have a problem.
I have two applications written in VB 6, running on the same machine. One
application uses RAS to connect to a remote machine and send data. I m using
Maby's RAS ActiveX control, which work very well. Other application connects
to another machine to send Pager messages, by directly opening the Com Port
and sending the message. In this application I m using MSCOMM ActiveX
control for the connection.
Now the problem is since the same port is being used by RAS, so pagng
application gives the "Port Already Open" error. I tried using "net stop
remoteacces" to stop RAS and then waiting for a few second and then try
opening the port. Sometimes it work fine, some times it gives the same port
open error(specially when the RAS is connected) or sometimes even it gives
me "Dr Watson erro".

So is there any other way to stop and start RAS Service through some API's

Any siggestions ??????

Thanks & Regards:


Sun, 09 Jun 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Start/Stop RAS

2. Starting and Stopping applications

3. Determining when an application is started or stopped

4. Starting and stopping an application

5. VB.Net Service Qustion: Detecting Program Start/Stop


7. start and stop of winamp in VB 6.0

8. Start/Stop external .exe from vb 6.0

9. Starting and stopping an NT Service with VB

10. Using VB 3.0 to start and stop other apps

11. Delay starting and stopping VB app in design mode

12. start\stop an NT Service from VB?


Powered by phpBB® Forum Software