Re: File system filter
- From: "Scherbina Vladimir" <vladimir.scherbina@xxxxxxxxx>
- Date: Tue, 3 Jan 2006 18:04:31 +0200
<adebaene@xxxxxxxxxxxxxxxx> wrote in message
news:1136298660.087169.219010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Daniel Lidström a écrit :
> Hello!
>
> I'm interested in the technique for monitoring file system changes. For
> example, in an editor it is nice to be able to know if the file being
> edited has changed outside the editor. How is this done in for example,
> Visual Studio? There seems to be a good resource at this location:
> http://www.microsoft.com/whdc/driver/filterdrv/default.mspx
> however, I'm not sure this technique is best for an editor. I would also
> like to be able to be notified when a file is created, renamed, or deleted
> in a specific directory. For this I would think a file system filter would
> be appropriate. Can anyone shed some light?
A filter driver is overkill for this kind of things (and quite
difficult to write too).
Use FindFirstChangeNotification / FindNextChangeNotification /
FindCloseChangeNotification or ReadDirectoryChangesW.
Arnaud
MVP - VC
In addition: mentioned API is not implemented under 9x.
--
Vladimir
> Thanks in advance!
>
> --
> Daniel
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?
.
- References:
- File system filter
- From: Daniel Lidström
- Re: File system filter
- From: adebaene
- File system filter
- Prev by Date: Re: 'libcpmtd.lib' link error!
- Next by Date: How NtBackup backup open files
- Previous by thread: Re: File system filter
- Next by thread: 'libcpmtd.lib' link error!
- Index(es):
Relevant Pages
|