I wa开发者_开发问答nt to track live changes to ACLs using .NET without using the EventLog variation.
Does anyone know if this is possible and howso? I've been searching for about a week without any helpful results.
Thanks,
JSchmitz
You should just need a FileSystemWatcher, with the NotifyFilter
property set to Security.
You can then call GetAccessControl to get the current ACL for the changed file/folder.
精彩评论