Solved

Intercepting File I/O from a Child Process??

Posted on 2004-04-08
4
212 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
Comment Utility
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
Comment Utility
Or look here:

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

(free for non-commercial purpose)
0
 

Author Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

11 Experts available now in Live!

Get 1:1 Help Now