예제 #1
0
        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);
            }
        }
예제 #2
0
        private void copyCLSIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            COMProcessClassRegistration c = GetRegisteredClass();

            if (c != null)
            {
                COMUtilities.CopyGuidToClipboard(c.Clsid, GuidFormat.String);
            }
        }
예제 #3
0
        private void copyCLSIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            COMProcessClassRegistration c = GetRegisteredClass();

            if (c != null)
            {
                COMRegistryViewer.CopyGuidToClipboard(c.Clsid, COMRegistryViewer.CopyGuidType.CopyAsString);
            }
        }
예제 #4
0
        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));
            }
        }
예제 #5
0
        private void contextMenuStripRegisteredClasses_Opening(object sender, System.ComponentModel.CancelEventArgs e)
        {
            COMProcessClassRegistration c = GetRegisteredClass();

            propertiesToolStripMenuItem.Visible = c != null && m_registry.Clsids.ContainsKey(c.Clsid);
        }