title: Monitoring app in c#
body: <p>I'm making a <strong>console app in c#</strong> for monitoring use in company pcs, the app works great, but my problem is that I want to make that if worker close it, i want to either disallow to close it (although i've read that it's not possible to avoid that he closes it from task monitor) or restart it again.</p>
  
  <p>My approach was to write a windows service that checks if app is running, but when started from service, app doesnt record users activity correctly (even allowing service to interact with desktop, by checking it on service control tab).</p>
  
  <p>I've think also in making a scheduled task, that monitor if app is running and restarts it if needed.</p>
  
  <p>My question is, what is the best approach to make that an app keeps going on while user (regular user, not admin rights) is logged in and can not be closed by him?</p>
  
  <p>PD: If he closes the app, he could be not working and it will be no constance of it ;)</p>