I do this at C# winh .NET4. It is easy to get the current user's credentials for any file or folder (like this). But the problem is that to get a collection of permissions (Read, Read Attributes, Write, etc.) for any given user or group, and I can not find a solution. The files and folders is located in network share resource. Users and groups is Active Directory based. It is wery easy to manage accounts with System.DirectoryServices. But permissions on file system objects is not in Active Directory, and that problem.
I would be very grateful for help!