I have created a folder lock in C#.NET which is working good on NTFS file system But its not working on FAT file system. please tell which dll/class/namespace should i use to get Lock files and folder on FAT file system through C#.NET
sample code which is working with NTFS (below code is to unlock file/folder)
FileInfo info = new FileInfo(folderpath);
FileSecurity accessControl = info.GetAccessControl(AccessControlSections.All);
accessControl.RemoveAccessRule(
new FileSystemAccessRule(
Environment.UserName.ToString(),
FileSystemRights.FullControl,
AccessControlType.Deny));
accessControl.SetSecurityDescriptorSddlForm(
"D:(A;;GAGRGWGXRCSDWDWORPWPCCDCLCSWLODTCR;;;WD)",
AccessControlSections.All);
info.SetAccessControl(accessControl);