Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Reading the modem log

Posted on 2001-08-18
6
230 Views
Last Modified: 2013-12-03
What i am tryiong to do i write a program that will display the infomation that my modem send to the modem log file onto the screen in real time, i want to use vb for this, can the winsocks controle be used, if so how
0
Comment
Question by:kplonk
6 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6402156
I don't see how the WINSOCK control would enter into this picture.  Just open the file and read the data.  Then display it on your screen.
0
 

Author Comment

by:kplonk
ID: 6402180
could do but not in real time, as a line of data is writen to the file i want to intercept this and echo it to the screen, sorry was not clear
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 6403636
You must hook WriteFile Api of modem driver.
This is only way, that I know.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:kplonk
ID: 6403898
i see could you explain it to me a bit more, thanks
0
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 50 total points
ID: 6405119
I am not good specialist in Hooks, but as I know, you
must write your Dll (that makes Hook) and use SetWindows HookEx API to install chain with this Hook.
In Windows Doc you 'll find more about this.
As working example I recomend you FileMon utility
from  http://www.sysinternals.com/ntw2k/source/filemon.shtml
(with source  code)
....
Filemon monitors and displays file system activity on a system in real-time
...
Filemon makes all, that you need, but makes many other
things , too...
0
 

Expert Comment

by:amp072397
ID: 6773047
kplonk:

I'm sure you've overlooked this question. Can you provide some feedback here?

thanks!
amp
community support moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ODBC Connection; Switch between 2 SQL Databases VBA 11 106
String manipulation in Visual Basic 7 73
What .NET website keeps me current? 9 77
Why use this lambda? 12 37
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question