title: Detecting if a Windows process AND application is running
body: <p>I'm investigating if there is a way to programatically check if a certain process is running as a process (in the list of running exe's) <strong>AND</strong> as an open application (i.e on the taskbar) and take action based on the results.  </p>
  
  <p>Also - is there a way to programatically kill a process <strong>OR</strong> a running application?</p>
  
  <p>We are running a WAMP application on this server so ideally i'd like a way to do this using PHP, but am open to whatever will work best.  </p>
  
  <p>Any advice?</p>