Example #1
0
 public SecurityDescriptor GetSecurity(SecurityInformation securityInformation)
 {
     using (var handle = _openMethod(
                StandardRights.ReadControl |
                ((securityInformation & SecurityInformation.Sacl) != 0 ? StandardRights.AccessSystemSecurity : 0)
                ))
         return(SecurityDescriptor.GetSecurity(handle, _objectType, securityInformation));
 }
Example #2
0
 public SecurityDescriptor GetSecurity(SecurityInformation securityInformation)
 {
     using (var dupHandle = _openMethod(StandardRights.ReadControl))
         return(SecurityDescriptor.GetSecurity(dupHandle, _objectType, securityInformation));
 }