Results 1 to 2 of 2

Thread: Modem Log dll

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Exclamation

    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

    Thank You!
    If you can't pronounce my name, call me GURU

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Lightbulb Example Code !

    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.

    Code:
    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.


    If you can't pronounce my name, call me GURU

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width