Link to home
Start Free TrialLog in
Avatar of tdaugaard
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.
ASKER CERTIFIED SOLUTION
Avatar of WalterM
WalterM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tdaugaard
tdaugaard

ASKER

hmm ... it is a bit much, yeah ... and I was hoping for a solution for DUN connections (as that's the only thing I have ...)
Sorry, tdaugaard, but I have never used a modem (!) - strictly LAN surfing...

You could try to use the API function "RasGetConnectionStatistics", but since I have no modem access, I can't test it myself.

Anyone else?

Michel
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
Sorry for not accepting your comment .. I've completely forgot this question :-(