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