Form to view the COM registration information
Inheritance: WeifenLuo.WinFormsUI.Docking.DockContent
コード例 #1
0
 private void copyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listViewTypes.SelectedItems.Count > 0)
     {
         ListViewItem item = listViewTypes.SelectedItems[0];
         COMRegistryViewer.CopyTextToClipboard(item.Text);
     }
 }
コード例 #2
0
ファイル: HexEditor.cs プロジェクト: zenhumany/oleviewdotnet
 private void copyGuidToolStripMenuItem_Click(object sender, System.EventArgs e)
 {
     if (hexBox.CanCopy() && hexBox.SelectionLength == 16)
     {
         byte[] bytes = GetSelectedBytes();
         COMRegistryViewer.CopyTextToClipboard(new Guid(bytes).FormatGuid());
     }
 }
コード例 #3
0
 private void CopyGuid(COMRegistryViewer.CopyGuidType copy_type)
 {
     if (listViewTypes.SelectedItems.Count > 0)
     {
         ListViewItemWithIid item = (ListViewItemWithIid)listViewTypes.SelectedItems[0];
         COMRegistryViewer.CopyGuidToClipboard(item.Iid, copy_type);
     }
 }
コード例 #4
0
        private void copyIPIDIIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            COMIPIDEntry ipid = GetSelectedIpid();

            if (ipid != null)
            {
                COMRegistryViewer.CopyGuidToClipboard(ipid.Iid, COMRegistryViewer.CopyGuidType.CopyAsString);
            }
        }
コード例 #5
0
        private void copyCLSIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            COMProcessClassRegistration c = GetRegisteredClass();

            if (c != null)
            {
                COMRegistryViewer.CopyGuidToClipboard(c.Clsid, COMRegistryViewer.CopyGuidType.CopyAsString);
            }
        }
コード例 #6
0
 private void CopyIID(ListView view, COMRegistryViewer.CopyGuidType type)
 {
     if (view != null && view.SelectedIndices.Count > 0)
     {
         ListViewItem item = view.SelectedItems[0];
         Tuple <COMInterfaceInstance, COMInterfaceEntry> intf = item.Tag as Tuple <COMInterfaceInstance, COMInterfaceEntry>;
         COMRegistryViewer.CopyGuidToClipboard(intf.Item1.Iid, type);
     }
 }
コード例 #7
0
        private void copyStubPointerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            COMIPIDEntry ipid = GetSelectedIpid();

            if (ipid != null)
            {
                COMRegistryViewer.CopyTextToClipboard(String.Format("0x{0:X}", ipid.Stub.ToInt64()));
            }
        }
コード例 #8
0
        private void copyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ListView view = sender as ListView;

            if (view != null && view.SelectedIndices.Count > 0)
            {
                ListViewItem item = view.SelectedItems[0];
                COMRegistryViewer.CopyTextToClipboard(item.Text);
            }
        }
コード例 #9
0
        private void copyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ListView list = sender as ListView;

            if (list != null && list.SelectedItems.Count > 0)
            {
                ListViewItem item = listViewInterfaces.SelectedItems[0];
                COMRegistryViewer.CopyTextToClipboard(item.Text);
            }
        }
コード例 #10
0
        private void toClipboardToolStripMenuItem_Click(object sender, EventArgs e)
        {
            COMIPIDEntry ipid = GetSelectedIpid();

            if (ipid != null)
            {
                var objref = $"objref:{Convert.ToBase64String(ipid.ToObjref())}:";
                COMRegistryViewer.CopyTextToClipboard(objref);
            }
        }
コード例 #11
0
        private void CopyGuid(object sender, COMRegistryViewer.CopyGuidType copy_type)
        {
            ListView list = sender as ListView;

            if (list != null && list.SelectedItems.Count > 0)
            {
                ListViewItemWithGuid item = list.SelectedItems[0] as ListViewItemWithGuid;
                if (item != null)
                {
                    COMRegistryViewer.CopyGuidToClipboard(item.Guid, copy_type);
                }
            }
        }
コード例 #12
0
 private void OpenView(COMRegistryViewer.DisplayMode mode)
 {
     HostControl(new COMRegistryViewer(COMRegistry.Instance, mode));
 }
コード例 #13
0
ファイル: MainForm.cs プロジェクト: JohanOtto/oleviewdotnet
 private void OpenView(COMRegistryViewer.DisplayMode mode)
 {
     COMRegistryViewer view = new COMRegistryViewer(m_comRegistry, mode);
     view.ShowHint = DockState.Document;
     view.Show(m_dockPanel);
 }
コード例 #14
0
ファイル: MainForm.cs プロジェクト: tyranid/oleviewdotnet
 private void OpenView(COMRegistryViewer.DisplayMode mode)
 {
     HostControl(new COMRegistryViewer(m_registry, mode));                
 }