Obtaining notifications with file data modification

  • Thread starter Thread starter tigrisofgod
  • Start date Start date
T

tigrisofgod

Guest
I am writing a directory / file manager ought to watch for file creation, deletion, and data modification. Using ReadDirectoryChangesW and FILE_NOTIFY_INFORMATION , I obtain notifications, but using the generic FILE_ACTION_MODIFIED value keeps sending notifications for creation and other modifications as well. If I remove FILE_ACTION_MODIFIED, then I do not get the notifications related to file data being changed, which is irksome.

Going through File_Notify_Action

i see another value, FILE_ACTION_MODIFIED_STREAM. The description of this is the same as FILE_ACTION_MODIFIED, however, I have not been able to find any documentation for this value, or what it does that is different from FILE_ACTION_MODIFIED. This value is also not present in Winnt.h Visual Studio 2015, using Windows Kit 10.0.17....

Does any documentation exist for FILE_ACTION_MODIFIED_STREAM, or is it supported in newer or older Visual Studio versions? Additionally, would this value indicate a file data modification unlike (as in not trigger a change for every file change event) FILE_ACTION_MODIFIED ?

<menu id="fcltHTML5Menu1" type="context"><menuitem command="context" label="Textise it"></menuitem></menu>

Continue reading...
 
Back
Top