private static void ShowSecurity(RegistrySecurity security) { foreach (RegistryAccessRule ar in security.GetAccessRules(true, true, typeof(NTAccount))) { m_logger.DebugFormat(" User: {0}", ar.IdentityReference); m_logger.DebugFormat(" Type: {0}", ar.AccessControlType); m_logger.DebugFormat(" Rights: {0}", ar.RegistryRights); m_logger.DebugFormat(" Inheritance: {0}", ar.InheritanceFlags); m_logger.DebugFormat(" Propagation: {0}", ar.PropagationFlags); m_logger.DebugFormat(" Inherited? {0}", ar.IsInherited); } }