void LoadPreApproved()
{
m_preapproved = new List<COMCLSIDEntry>();
using (RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Ext\\PreApproved"))
{
if (key != null)
{
string[] subkeys = key.GetSubKeyNames();
foreach (string s in subkeys)
{
Guid g;
if(Guid.TryParse(s, out g))
{
if (m_clsids.ContainsKey(g))
{
m_preapproved.Add(m_clsids[g]);
}
}
}
}
}
}