Esempio n. 1
0
        //string p_name = "LolClient"; // Set name of program launcher
        //string m_name = "";        //Set name of main program. Aka the actual game launching passed the launcher.
        // Load Process into a Process_Object. Will load the first process in the data.txt, should be lol
        public static void Find_Process()
        {
            Console.Write(string.Concat("Searching for Process: ", Program_Importer.programs.ElementAt(choice).Get_Name()));
            Process_Object cn_process = Process_Object.GetProcessObject(Program_Importer.programs.ElementAt(choice).Get_Name());

            while (cn_process == null)
            {
                Console.Write(".");
                System.Threading.Thread.Sleep(2500);
                cn_process = Process_Object.GetProcessObject(Program_Importer.programs.ElementAt(choice).Get_Name());
            }
            // Print Resulting Process Name and PID (Process ID)
            System.Console.Write(string.Concat("\n", cn_process.GetName(), " ", "PID: ", cn_process.GetPID()));
            // End Load and Print Segment
            Analyze_Process(cn_process);
        }