|
-
June 27th, 2005, 04:25 AM
#1
File Monitoring (Read,Write etc...) monitoring system.
I need to develop a system to monitor operations performed on files/folders.
Such as
1. open,
2. read,
3. write,
4. close,
5. copy,
6 rename,and
7. move
I have stumbled upon one solution.
Having a "File System Filter Driver" which monitors every atomic operation performed on the file system. But the information available out of the driver is too huge to classify into a single user operation.
For example
(*) IRP_MJ_WRITE is the Major function getting initiated when a user tries to write a file.
(*) However more than one IRP_MJ_WRITE happens for a single write.
(*) when user saves the document twice,it is difficult for me to group the IRP_MJ_WRITE's into TWO user writes.
Someone help me on how to proceed on this, or may be any other solution to this problem.
-
June 27th, 2005, 05:21 AM
#2
Re: File Monitoring (Read,Write etc...) monitoring system.
Hi,
if you can use Win-API, take a look at "ReadDirectoryChangesW" in the MSDN.
This works fine and uncomplicated.
Hope this helps,
Matze
-
June 27th, 2005, 05:26 AM
#3
Re: File Monitoring (Read,Write etc...) monitoring system.
 Originally Posted by Madhan_Saran
I need to develop a system to monitor operations performed on files/folders.
You might also take a look at FindFirstChangeNotification() / FindNextChangeNotification().
-
June 27th, 2005, 05:41 AM
#4
Re: File Monitoring (Read,Write etc...) monitoring system.
 Originally Posted by matze42
Hi,
if you can use Win-API, take a look at "ReadDirectoryChangesW" in the MSDN.
This works fine and uncomplicated.
Hope this helps,
Matze
The only drawback of the function is that it is not available for Win 9x systems. Also, the drive being monitored must have NTFS file system.
Har Har
-
June 27th, 2005, 05:51 AM
#5
Re: File Monitoring (Read,Write etc...) monitoring system.
 Originally Posted by Madhan_Saran
I need to develop a system to monitor operations performed on files/folders.
Is there any special reason why you need to re-invent the wheel?
-
June 27th, 2005, 06:20 AM
#6
Re: File Monitoring (Read,Write etc...) monitoring system.
 Originally Posted by PadexArt
The only drawback of the function is that it is not available for Win 9x systems. Also, the drive being monitored must have NTFS file system.
Neither of these things are much of a drawback these days!!
Markus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|