开发者

.NET ACL Auditing in Realtime

开发者 https://www.devze.com 2023-03-30 20:38 出处:网络
I wa开发者_开发问答nt to track live changes to ACLs using .NET without using the EventLog variation.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消