private void LoadLowRightsKey(RegistryKey rootKey)
{
using (RegistryKey key = rootKey.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Low Rights\\ElevationPolicy"))
{
if (key != null)
{
string[] subkeys = key.GetSubKeyNames();
foreach (string s in subkeys)
{
Guid g;
if (Guid.TryParse(s, out g))
{
using (RegistryKey rightsKey = key.OpenSubKey(s))
{
COMIELowRightsElevationPolicy entry = new COMIELowRightsElevationPolicy(this, g, m_clsids, m_clsidbyserver, rightsKey);
if (entry.Clsids.Length > 0)
{
m_lowrights.Add(entry);
}
}
}
}
}
}
}