1. Get the current process information organized
Process.getcurrentprocess () that returns the process object for the current program.
Process cur =process.getcurrentprocess (); //ID of the current processConsole.WriteLine (cur. ID); //gets the Terminal Services session identifier of the associated process. Console.WriteLine (cur. SESSIONID); //the name of the current processConsole.WriteLine (cur. ProcessName); //the start time of the current processConsole.WriteLine (cur. StartTime); //gets the value specified when the associated process terminates, used in the Exit event//Console.WriteLine (cur. ExitCode); //gets the current machine name of the processConsole.WriteLine (cur. MachineName);//. Represents a local//Gets the main window caption for the process. Console.WriteLine (cur. MainWindowTitle);
More:
C # Process Launch instance
C # Processes and threads
C # Processes and threads
C # process gets information about current processes