Solved

Intercepting File I/O from a Child Process??

Posted on 2004-04-08
4
218 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
[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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
Winform not working on 64 bit machine 31 104
Convert GUI app into console app for Win32 Env 5 125
Dialogbox API leak? 18 109
SSRS troubles 4 86
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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