Click here to Skip to main content
15,867,835 members
Articles / Desktop Programming / MFC
Article

Keeping an eye on the RAS-connections

Rate me:
Please Sign up or sign in to vote.
4.33/5 (8 votes)
4 Jun 20021 min read 53.6K   1.1K   22   2
Logs the usage of RAS-connection to an access-database

Sample Image - dialupwatch.jpg

Introduction

I think I'm not the only one who's still stuck with a lousy dial-up connection. And since a dial-up means using the phoneline to connect to the Internet, this also means a surprise every now and then when the phonebill shows up. So to avoid this surprise, I browsed codeproject for some code and I found some useful classes.

What I found were the following:

These classes along with my excellent coding :-) resulted in a tool I needed.

Details

So I took these classes and used them in a program that logs the usage into a Access-database. The code is quite easy and straight forward and I've tried to add some comments here and there. I'm sure this program can be improved. Although I've tested the program (I'm using it at home and my wife is surfing quite alot :-) ), there might though be some hidden bugs. Anyhow, I hope this can be of some use.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect
Sweden Sweden
Been developing MAPI-modules (client-addins, gateways, agents, MTA's etc) since -96.
Works mainly in VC++, but when needed, looks at vb, asp, etc...

Always on the look for new things to do, got something for me? Smile | :)
I'm available for consulting, on a project-base or long-term development.

Comments and Discussions

 
Generalcapturing ras errors Pin
Paras6-Aug-03 14:15
Paras6-Aug-03 14:15 
hi there,

I gone through ur aritcle posted on CodeProject "Keeping an eye on the RAS-connections".

First of all, it was a nice work.

I have one query. Is that possible to capture the RAS Errors before even showing up the default ras error dialog box? Can we use any kind of system hook to achive that functionality? There must be some window message does the same.

We can get the error messages if we dial programmaticallly. But lets say im dialing through the windows dun. Then in that case it will prompt the error. And i need to capture that error.

Help me out if u find any solution of this problem.

Thanx.

Paras

GeneralTelephone number Pin
balu_pl14-Jun-03 12:56
balu_pl14-Jun-03 12:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.