Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Apr : Hook disk file writes

www.cryer.info
Managed Newsgroup Archive

Hook disk file writes

Subject:Hook disk file writes
Posted by:"Phill Harvey-Smith" (phi..@bio.warwick.ac.uk)
Date:18 Apr 2005 05:52:38

Hi,

I have been asked to investigate writing a utility for my employer that will
record when files a writtien to the local hard disk, so that we can track
changes to files on our windows machines. I would imagine you can achieve
this by hooking some of the windows functions for opening/writing files, but
can find no information on how to do this in Delphi.

Does anyone have any hints as to how to go about this, ideally what I am
looking at doing is writing a service that monitors writes to files in the
same way that anti-virus programs do, but just records the names/dates of
the files written.

Alternatly if anyone knows of any software that already exists to do this
feel free to point me at that.

Cheers.

Phill.

Replies:

www.cryer.info
Managed Newsgroup Archive