tracking file system changes

M

Muddassir

hi everybody


I am writing an application for tracking files and directory changes
I used

FindFirstChangeNotification
FindNextChangeNotification
FindCloseChangeNotification
ReadDirectoryChangesW

and these are working fine and I can track all changes.

Now I want to interrupt the file system events like if the file i
being changed i want to interrupt this function and want to take th
file backup first. hope u got what i want to know . so can u peopl
please help me out in this problem ??? what functions /methods to us
for this.

Hope to see positive response

byeeeee


-
Muddassi
 
C

Carl Daniel [VC++ MVP]

Muddassir said:
hi everybody


I am writing an application for tracking files and directory changes.
I used

FindFirstChangeNotification
FindNextChangeNotification
FindCloseChangeNotification
ReadDirectoryChangesW

and these are working fine and I can track all changes.

Now I want to interrupt the file system events like if the file is
being changed i want to interrupt this function and want to take the
file backup first. hope u got what i want to know . so can u people
please help me out in this problem ??? what functions /methods to use
for this.

Normally this kind of thing is done using a file system filter driver and a
cooperating service - which is a very different thing from simply tracking
changes. To write a filter driver, you'll need to purchase the "IFS Kit",
which goes for about $900, and plan to spend a year or so learning enough
about the file system to write a high-quality driver.

You might not be aware, but Windows Server 2003 has a facility called
"Volume Shadow Copy" that can transparently do this for you (within certain
parameters).

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top