Solved

Reading the modem log

Posted on 2001-08-18
6
234 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
[X]
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
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
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…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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