Solved

Intercepting File I/O from a Child Process??

Posted on 2004-04-08
4
213 Views
Last Modified: 2013-12-03
I need to monitor the log file activity of a third party application in real time.  However, it has placed a read lock on the file so I cannot access it directly off the disk.

Is it possible to redirect or intercept File I/O if I launch it as a Child Process?  I see lots of examples of reading the Standard I/O but I need to read the file stream.  

If that is not possible or you have another way of reading the file, please let me know.

Thanks!
0
Comment
Question by:joecm
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 10792739
Check out http://www.codeproject.com/system/hooksys.asp ("API hooking revealed"). This approach allows you to intercept all file I/O calls in the 3rd party app and thus monitoring the log file activity.
0
 
LVL 20

Assisted Solution

by:Madshi
Madshi earned 250 total points
ID: 10796323
Or look here:

http://help.madshi.net/madCodeHook.htm

(free for non-commercial purpose)
0
 

Author Comment

by:joecm
ID: 11103950
Good to know I can split... Thank you both for pointing me in the right direction.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now