C
Captain Kirk
Hi Everyone
When a folder is created its file system
permissions are inherited automatically to its subfolders and its subfiles.
I want to switch the inheritance on and off through c# code. Following is
the small snippet of the code that I have written to do this. But it is not
working properly
ActiveDs.IADsAccessControlList obDacl = ( ActiveDs.IADsAccessControlList )
securitydescriptor.DiscretionaryAcl;
Allow = new AccessControlEntryClass();
//For recursive security settings
Allow.AceFlags = (int)ADS_ACEFLAG_ENUM.ADS_ACEFLAG_NO_PROPAGATE_INHERIT_ACE;
//ACE is allow type
Allow.AceType = 3;
Can anyone please help me?
When a folder is created its file system
permissions are inherited automatically to its subfolders and its subfiles.
I want to switch the inheritance on and off through c# code. Following is
the small snippet of the code that I have written to do this. But it is not
working properly
ActiveDs.IADsAccessControlList obDacl = ( ActiveDs.IADsAccessControlList )
securitydescriptor.DiscretionaryAcl;
Allow = new AccessControlEntryClass();
//For recursive security settings
Allow.AceFlags = (int)ADS_ACEFLAG_ENUM.ADS_ACEFLAG_NO_PROPAGATE_INHERIT_ACE;
//ACE is allow type
Allow.AceType = 3;
Can anyone please help me?