Ejemplo n.º 1
0
        public ProcessInfo?GetProcessInfo(string process_name)
        {
            ProcessList processList = MemoryHelper.GetProcessList();
            ProcessInfo?processInfo = null;

            foreach (Process process in processList.processes)
            {
                if (process.name == process_name)
                {
                    processInfo = MemoryHelper.GetProcessInfo(process.pid);
                    break;
                }
            }

            return(processInfo);
        }
Ejemplo n.º 2
0
        public ProcessInfo GetProcessInfo(string process_name)
        {
            //this.ps4.Connect();
            ProcessList processList = MemoryHelper.GetProcessList();
            ProcessInfo processInfo = null;

            foreach (Process process in processList.processes)
            {
                if (process.name == process_name)
                {
                    ProcessID   = process.pid;
                    processInfo = MemoryHelper.GetProcessInfo(process.pid);
                    break;
                }
            }

            return(processInfo);
        }
Ejemplo n.º 3
0
        private void get_processes_btn_Click(object sender, EventArgs e)
        {
            try
            {
                MemoryHelper.Connect(ip_box.Text);

                this.processes_comboBox.Items.Clear();
                ProcessList pl = MemoryHelper.GetProcessList();
                foreach (Process process in pl.processes)
                {
                    this.processes_comboBox.Items.Add(process.name);
                }
                this.processes_comboBox.SelectedIndex = 0;
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, exception.Source, MessageBoxButtons.OK, MessageBoxIcon.Hand);
            }
        }
Ejemplo n.º 4
0
        private void btnRefreshProcess_Click(object sender, EventArgs e)
        {
            try
            {
                btnRefreshProcess.Enabled = false;
                Cursor = Cursors.WaitCursor;

                int index = 0;

                MemoryHelper.Connect(txtIpAddress.Text, true);

                this.cmbProcesses.Items.Clear();
                ProcessList pl = MemoryHelper.GetProcessList();

                if (pl != null)
                {
                    int i = 0;
                    foreach (Process process in pl.processes)
                    {
                        this.cmbProcesses.Items.Add(process.name);
                        if (process.name.Contains("eboot.bin"))
                        {
                            index = i;
                        }
                    }

                    this.cmbProcesses.SelectedIndex = index;
                }
                this.cmbProcesses.SelectedIndex = -1;
                MessageBox.Show(this, "Cannot connect to PS4", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, exception.Source, MessageBoxButtons.OK, MessageBoxIcon.Hand);
            }
            finally
            {
                btnRefreshProcess.Enabled = true;
                Cursor = Cursors.Default;
            }
        }
Ejemplo n.º 5
0
        public string GetProcessName(int idx)
        {
            ProcessList processList = MemoryHelper.GetProcessList();

            return(processList.processes[idx].name);
        }