|
Author |
Message |
David Lambricht #1 / 5
|
 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 |
|
 |
Asko Teline #2 / 5
|
 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 |
|
 |
Johnny Rela #3 / 5
|
 RasGetConnectStatus
!. Dont crosspost ! Use a ras control. Its much easier than the API.
|
Thu, 19 Sep 2002 04:00:00 GMT |
|
 |
Bill McCarth #4 / 5
|
 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 |
|
 |
Radu Stanci #5 / 5
|
 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 |
|
|
|