tdaugaard
asked on
Get DUN og LAN connection duration time
Hey :-)
I've searched, looked and asked people I know who knows VB but I've not yet found the answer to my question, so I thought I'd give it a shot here :-)
If possible, how do I find the duration time for a particular DUN og LAN connection ?
I found a piece of code on www.planetsourcecode.com that would get me bytes transmitted (Tx & Rx), but it could not tell me how long the connection has been connected.
I've searched, looked and asked people I know who knows VB but I've not yet found the answer to my question, so I thought I'd give it a shot here :-)
If possible, how do I find the duration time for a particular DUN og LAN connection ?
I found a piece of code on www.planetsourcecode.com that would get me bytes transmitted (Tx & Rx), but it could not tell me how long the connection has been connected.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, tdaugaard, but I have never used a modem (!) - strictly LAN surfing...
You could try to use the API function "RasGetConnectionStatistic s", but since I have no modem access, I can't test it myself.
Anyone else?
Michel
You could try to use the API function "RasGetConnectionStatistic
Anyone else?
Michel
ASKER
Wow ... never ? Well .. I'll try look up the API you suggested..
Yes, never used a modem whatsoever...
In university I surfed the net using their T1 connection. And the company I am currently employed is in the process of upgrading from a quadruple-ISDN to an ADSL connection.
A friend of mine gave me an old 56k modem a couple a months ago, but I've never had the urge to connect it because I suspect it would be a huge disappointment compared to what I've come to expect. A high speed connection is somewhat like a remote control; you get used to and forget about it very quickly, until the day comes that you have to do without...
Besides, not having an internet connection at home is about the only thing that keeps me from becoming a totally alienated computer geek ;-)
Michel
In university I surfed the net using their T1 connection. And the company I am currently employed is in the process of upgrading from a quadruple-ISDN to an ADSL connection.
A friend of mine gave me an old 56k modem a couple a months ago, but I've never had the urge to connect it because I suspect it would be a huge disappointment compared to what I've come to expect. A high speed connection is somewhat like a remote control; you get used to and forget about it very quickly, until the day comes that you have to do without...
Besides, not having an internet connection at home is about the only thing that keeps me from becoming a totally alienated computer geek ;-)
Michel
ASKER
Sorry for not accepting your comment .. I've completely forgot this question :-(
ASKER