private void SetupRuntimeServerEntry(COMRuntimeServerEntry entry) { textBoxRuntimeServerName.Text = entry.Name; textBoxRuntimeServerExePath.Text = GetStringValue(entry.ExePath); textBoxRuntimeServerPermissions.Text = GetStringValue(entry.Permissions); btnRuntimeServerViewPermissions.Enabled = entry.HasPermission; textBoxRuntimeServerServiceName.Text = GetStringValue(entry.ServiceName); textBoxRuntimeServerType.Text = entry.ServerType.ToString(); textBoxRuntimeServerIdentity.Text = GetStringValue(entry.Identity); textBoxRuntimeServerIdentityType.Text = entry.IdentityType.ToString(); textBoxRuntimeServerInstancing.Text = entry.InstancingType.ToString(); m_runtime_server = entry; tabControlProperties.TabPages.Add(tabPageRuntimeServer); }
private static void LoadRuntimeServers(RegistryKey runtime_key, string package_id, COMRegistry registry, Dictionary <string, COMRuntimeServerEntry> servers) { using (RegistryKey server_key = runtime_key.OpenSubKey("Server")) { List <COMRuntimeServerEntry> entries = new List <COMRuntimeServerEntry>(); if (server_key != null) { foreach (string name in server_key.GetSubKeyNames()) { using (RegistryKey subkey = server_key.OpenSubKey(name)) { if (subkey != null) { servers[name] = new COMRuntimeServerEntry(registry, package_id, name, subkey); } } } } } }
private void SetupRuntimeClassEntry(COMRuntimeClassEntry entry) { textBoxRuntimeClassName.Text = entry.Name; textBoxRuntimeClassCLSID.Text = GetGuidValue(entry.Clsid); textBoxRuntimeClassServer.Text = GetStringValue(entry.Server); textBoxRuntimeClassPermissions.Text = GetStringValue(entry.Permissions); textBoxRuntimeClassDllPath.Text = GetStringValue(entry.DllPath); textBoxRuntimeClassActivationType.Text = entry.ActivationType.ToString(); textBoxRuntimeClassTrustLevel.Text = entry.TrustLevel.ToString(); textBoxRuntimeClassThreading.Text = entry.Threading.ToString(); LoadInterfaceList(entry.Interfaces, listViewInterfaces); LoadInterfaceList(entry.FactoryInterfaces, listViewFactoryInterfaces); btnRuntimeClassViewPermissions.Enabled = entry.HasPermission; tabPageSupportedInterfaces.Tag = entry; m_runtime_class = entry; tabControlProperties.TabPages.Add(tabPageRuntimeClass); tabControlProperties.TabPages.Add(tabPageSupportedInterfaces); COMRuntimeServerEntry server = m_registry.MapRuntimeClassToServerEntry(entry); if (server != null) { SetupRuntimeServerEntry(server); } }