FileSystemWatcher - minimum permissions needed on target directories?
问题 Using the .NET FileSystemWatcher http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx to monitor a directory full of files for : Changed; Created; Deleted; Renamed events . What's the minimum the rights the Account running the FileSystemWatcher needs over the directory it's watching ? It seems like it would be READ but I can't find that documented anywhere. Thanks 回答1: The underlying API is ReadDirectoryChangesW. The only thing mentioned in the MSDN Library article for it