Ejemplo n.º 1
0
        public DumpProcessWindow(DumpHackerWindow hw, ProcessItem item, MemoryObject processMo)
        {
            InitializeComponent();
            this.AddEscapeToClose();

            _hw        = hw;
            _item      = item;
            _processMo = processMo;

            if (_item.Pid > 0)
            {
                this.Text = _item.Name + " (PID " + _item.Pid.ToString() + ")";
            }
            else
            {
                this.Text = _item.Name;
            }

            this.Icon = _item.Icon;
        }
Ejemplo n.º 2
0
        public DumpProcessWindow(DumpHackerWindow hw, ProcessItem item, MemoryObject processMo)
        {
            InitializeComponent();
            this.AddEscapeToClose();

            _hw = hw;
            _item = item;
            _processMo = processMo;

            if (_item.Pid > 0)
            {
                this.Text = _item.Name + " (PID " + _item.Pid.ToString() + ")";
            }
            else
            {
                this.Text = _item.Name;
            }

            this.Icon = _item.Icon;
        }
Ejemplo n.º 3
0
        private void openMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter = "Process Hacker Dump Files (*.phi)|*.phi|All Files (*.*)|*.*";

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                DumpHackerWindow dhw = null;

                try
                {
                    dhw = new DumpHackerWindow(ofd.FileName);
                }
                catch (ProcessHacker.Native.Mfs.MfsInvalidFileSystemException)
                {
                    PhUtils.ShowError("Unable to open the dump file: the dump file is invalid.");
                }
                catch (Exception ex)
                {
                    PhUtils.ShowException("Unable to open the dump file", ex);
                }

                if (dhw != null)
                    dhw.Show();
            }
        }