Querying Windpws Task Manager
-
I need to write a .NET Windows Desktop app that interrogates the Windows Task Manager to see what processes are running. This is for a Internet Explorer based Kiosk. The app would check every few seconds to make sure that there is an instance of Internet Explorer running. This is in case that some user who comes to the kiosk terminates Internet Explorer. If Internet Explorer stops running the app would fire off a new instance of Internet Explorer. How can I interrogate the Windows Task Manager in C#. Is there an API, or set of classes for that? Is there a better way to do this than what I am proposing? Thanks! Mark
-
I need to write a .NET Windows Desktop app that interrogates the Windows Task Manager to see what processes are running. This is for a Internet Explorer based Kiosk. The app would check every few seconds to make sure that there is an instance of Internet Explorer running. This is in case that some user who comes to the kiosk terminates Internet Explorer. If Internet Explorer stops running the app would fire off a new instance of Internet Explorer. How can I interrogate the Windows Task Manager in C#. Is there an API, or set of classes for that? Is there a better way to do this than what I am proposing? Thanks! Mark
You don't need to access Task Manager directly. Use the
System.Diagnostics.Process
class.