Re: File system filter




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


> 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?

.



Relevant Pages

  • Re: Cannot save changes to sudoers
    ... visudo is just another editor. ... or anywhere else that restricts editing /etc/sudoers to visudo. ... that the file system is readonly or perhaps a text editor that doesn't ... know the difference between a readonly file and a readonly file system. ...
    (comp.os.linux.setup)
  • Re: File system filter
    ... > I'm interested in the technique for monitoring file system changes. ... > edited has changed outside the editor. ...
    (microsoft.public.vc.language)
  • Re: Creating Help File
    ... editor. ... Have small database to keep scores for my ... > file system. ... I tried html help workshop but get really confused. ...
    (microsoft.public.access.devtoolkits)
  • File system filter
    ... I'm interested in the technique for monitoring file system changes. ... edited has changed outside the editor. ...
    (microsoft.public.vc.language)
  • Re: Application Object Replacement
    ... does anyone have any ideas on how to use a different technique ... What about creating another filesystem with a portion of my Linux's ... existing file system? ...
    (comp.lang.php)