Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

Intercepting File I/O from a Child Process??

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
joecm
Asked:
joecm
2 Solutions
 
jkrCommented:
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
 
MadshiCommented:
Or look here:

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

(free for non-commercial purpose)
0
 
joecmAuthor Commented:
Good to know I can split... Thank you both for pointing me in the right direction.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now