![]() ![]() ![]() Figure 1: This WPF list box display a list of processes running on the current computer Create a process class in order to add additional information about processes such as memory displayed in KB and MB. From this Process object, you can retrieve information about the process ( Figure 1) such as its unique ID, its name, whether or not it is running, and how much memory that process is consuming. The GetProcesses method returns a string array of Process objects from the current (or a remote) computer. NET Process class located in the System.Diagnostics namespace. To read all processes running on a computer, use the. As part of this process, I had to write a class to get a list of all of the processes running on the current computer or on another computer on their network. I helped the client write a Windows Service to monitor their running processes and ensure that they are up and running and to notify them and to attempt to restart those processes. Every once in a while, the processes fail and need to be restarted. I have a client that has a few Windows Services and some EXEs that run on a computer to perform various business functions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |