private async Task CreateInstance(bool class_factory) { COMProcessClassRegistration c = GetRegisteredClass(); if (c != null) { await EntryPoint.GetMainForm(m_registry).CreateInstanceFromCLSID(c.Clsid, CLSCTX.LOCAL_SERVER, class_factory); } }
private void copyCLSIDToolStripMenuItem_Click(object sender, EventArgs e) { COMProcessClassRegistration c = GetRegisteredClass(); if (c != null) { COMUtilities.CopyGuidToClipboard(c.Clsid, GuidFormat.String); } }
private void copyCLSIDToolStripMenuItem_Click(object sender, EventArgs e) { COMProcessClassRegistration c = GetRegisteredClass(); if (c != null) { COMRegistryViewer.CopyGuidToClipboard(c.Clsid, COMRegistryViewer.CopyGuidType.CopyAsString); } }
private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { COMProcessClassRegistration c = GetRegisteredClass(); if (c != null && m_registry.Clsids.ContainsKey(c.Clsid)) { COMCLSIDEntry clsid = m_registry.MapClsidToEntry(c.Clsid); EntryPoint.GetMainForm(m_registry).HostControl(new PropertiesControl(m_registry, clsid.Name, clsid)); } }
private void contextMenuStripRegisteredClasses_Opening(object sender, System.ComponentModel.CancelEventArgs e) { COMProcessClassRegistration c = GetRegisteredClass(); propertiesToolStripMenuItem.Visible = c != null && m_registry.Clsids.ContainsKey(c.Clsid); }