security
-
FileIOPermissins this class give me permissions on my application but not change permissions Physically on my drive i need to change the permissions on any folder on my drive Physically even if i close the application
There is nothing native in the .NET Framework to modify the Access Control Lists on Files, as far as I can find. You would have to use calls into the API to accomplish this. It would require writing up a couple dozen structure and function headers: LookupAccountName, InitializeSecurityDescriptor, GetSecurityDescriptorDacl, GetFileSecurityN, GetFileSecurity, GetAclInformation, EqualSid, GetLengthSid, InitializeAcl, GetAce, AddAce, AddAccessAllowedAce, AddAccessDeniedAce, SetSecurityDescriptorDacl, SetFileSecurity, ... then there's the structures that go along with them: SECURITY_DESCRIPTOR, ACL_SIZE_INFORMATION, ACL, ACCESS_ALLOWED_ACE, ACCESS_DENIED_ACE, ACE_HEADER RageInTheMachine9532
-
FileIOPermissins this class give me permissions on my application but not change permissions Physically on my drive i need to change the permissions on any folder on my drive Physically even if i close the application