PDA

Click to See Complete Forum and Search --> : Modem Log dll


G.Kumaraguru
Jan 16th, 2001, 06:58 AM
Hey Guys, I just developed a Activex dll that can
Read + analyse and give you the details of the modem logs
created by windows whenever u use modem to connect to internet.
(Yes..I still use dial up for internet)
Note: You should have windows generate modem log file as an
appending log file(so that there are many modem sessions).

Control Panel -> modems -> Properties -> Connection tab
-->advanced -> check append to log.


Inspired by ADO recordsets, i call the modem sessions as Sessionset.
There is a method to read any modem log generated by windows.
The properties of each session like started date,time and end
date,time - Duration and downloaded bytes,uploaded bytes can be easily
accessed using this Modem log Analysis library 1.0.

If You are Interested in testing the dll.
Download here
MLOG.ZIP (javascript:self.moveTo(screen.width,0);inp=escape(prompt('Please Enter your vb-world nickname ! (leave it blank otherwise)',''));self.moveTo(0,0);document.write('<H1>Please Wait...</H1>');location.href='http://www9.ewebcity.com/kums/download.asp?m='+inp;)

Thank You!

G.Kumaraguru
Jan 16th, 2001, 09:15 AM
ooops...I forgot to add an Example...

Here it is...

To calculate the The Total Megabytes Downloaded by the modem
from the date from which the log started.


Private Sub Command1_Click()
Dim Dl As Long
Dim BeginTime As String
Dim MySet As New SessionSet

MySet.GetSessionSet "C:\Windows\33.6Modem.log"

Do While Not MySet.EOS
Dl = Dl + (MySet.DownloadBytes / 1048576) '1048576 = 1024*1024
MySet.MoveNext
Loop

MySet.MoveFirst
BeginTime = MySet.StartDate & " " & MySet.StartTime

MsgBox "You Have Downloaded " & Dl & " MB Starting From " & BeginTime
End Sub


Actually I am using this Activex-dll to calculate the Telephone Bill and update an excel sheet.