Re: File system filter

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




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

  • 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: Disabling "Edit with Vim " context menu entry in Windows?
    ... knew something about Usenet. ... One thing rumored for what became Longhorn was an entirely new file system based on SQL Server. ... Arguably root needs it more than other users, ... I'm trying to fill in the blanks in the wiki's info on early text editors and the evolution of editor design. ...
    (comp.editors)
  • 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)