RasGetConnectStatus 
Author Message
 RasGetConnectStatus

Hello,

I've written a vb program for a dial-up to the internet. I put a timer
control on the form with an interval of 100 for getting the connection
status. In the event of the timer I use the api-call RasGetConnectStatus to
get the status of the connection. When I debug my status, it returns the
following values in the following order : 2, 5, 8192. I can't get all values
of status. It seems the program skips a few values. I want to give a message
in my program when the status is 14 (authenticated) , but now I can't. Can
someone tell me what i do wrong ?

Thanks,

David



Wed, 18 Sep 2002 03:00:00 GMT  
 RasGetConnectStatus
Use callback function to do this...
Its more reliable than the function you use...


Quote:
> Hello,

> I've written a vb program for a dial-up to the internet. I put a timer
> control on the form with an interval of 100 for getting the connection
> status. In the event of the timer I use the api-call RasGetConnectStatus
to
> get the status of the connection. When I debug my status, it returns the
> following values in the following order : 2, 5, 8192. I can't get all
values
> of status. It seems the program skips a few values. I want to give a
message
> in my program when the status is 14 (authenticated) , but now I can't. Can
> someone tell me what i do wrong ?

> Thanks,

> David



Wed, 18 Sep 2002 03:00:00 GMT  
 RasGetConnectStatus
!. Dont crosspost !

Use a ras control. Its much easier than the API.



Thu, 19 Sep 2002 04:00:00 GMT  
 RasGetConnectStatus
Hi David,

You are probably best to use a cllback function.  See my web site for
further info :
www.TotalEnviro.com/PlatformVB


Quote:
> Hello,

> I've written a vb program for a dial-up to the internet. I put a timer
> control on the form with an interval of 100 for getting the connection
> status. In the event of the timer I use the api-call RasGetConnectStatus
to
> get the status of the connection. When I debug my status, it returns the
> following values in the following order : 2, 5, 8192. I can't get all
values
> of status. It seems the program skips a few values. I want to give a
message
> in my program when the status is 14 (authenticated) , but now I can't. Can
> someone tell me what i do wrong ?

> Thanks,

> David



Mon, 23 Sep 2002 03:00:00 GMT  
 RasGetConnectStatus
Hi,

You could also check the Dial-Up Monitor project at my site (see the signature).

--

Visual Basic Open Source Site: http://open-source.home.ro

Quote:

> Hi David,

> You are probably best to use a cllback function.  See my web site for
> further info :
> www.TotalEnviro.com/PlatformVB



> > Hello,

> > I've written a vb program for a dial-up to the internet. I put a timer
> > control on the form with an interval of 100 for getting the connection
> > status. In the event of the timer I use the api-call RasGetConnectStatus
> to
> > get the status of the connection. When I debug my status, it returns the
> > following values in the following order : 2, 5, 8192. I can't get all
> values
> > of status. It seems the program skips a few values. I want to give a
> message
> > in my program when the status is 14 (authenticated) , but now I can't. Can
> > someone tell me what i do wrong ?

> > Thanks,

> > David



Tue, 24 Sep 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. RasGetConnectStatus

2. RasGetConnectStatus

3. RasGetConnectStatus

4. RasGetConnectStatus && Multilink Connections

5. RasGetConnectStatus function

6. RAS API Calls, trouble with RASGetConnectStatus

7. RasGetConnectStatus

8. RAS API Calls, Trouble with RASGetConnectStatus

 

 
Powered by phpBB® Forum Software