Exemplo n.º 1
0
        private void generateProcesses()
        {
            String layout = textBox_processes.Text;
            Regex  regex  = new Regex("\r\n");

            String[] lines = regex.Split(layout);


            processes.Clear();
            comboBox_processes.Items.Clear();

            foreach (String p in lines)
            {
                String[] pParts = p.Split(' ');
                //MessageBox.Show(p);
                if (pParts.Length >= 8)
                {
                    int len = pParts.Length;
                    if (
                        pParts[0] == "pid:" &&
                        pParts[2] == "pname:" &&
                        pParts[len - 4] == "tid:" &&
                        pParts[len - 2] == "kpobj:"
                        )
                    {
                        NTRProcess np = new NTRProcess(p);
                        processes.Add(np);
                        Int32  pid  = np.pid;
                        String name = np.name;
                        comboBox_processes.Items.Add(String.Format("{0} | {1:X} : {2}", checkSystem(name) ? "SYSTEM" : "GAME  ", pid, name));
                    }
                }
                comboBox_processes.SelectedIndex = 0;
            }
        }
Exemplo n.º 2
0
 private void button_pTest_Click(object sender, EventArgs e)
 {
     String     p  = "pid: 0x00000008, pname:     gpio, tid: 0004013000001b02, kpobj: fff76fb0";
     NTRProcess np = new NTRProcess(p);
 }