title: Restrict user to stop a windows service
body: <p>I'm involved in writing a Windows Service. Before I start writing it, I'd like to know</p>
  
  <ol>
  <li>What are the points to be considered in terms of LOGIN USERS, specifically how to restrict other users from "stopping a service"?</li>
  <li>What are the generic points should I consider while writing a service?</li>
  <li>How can I display a warning alert once the user tries to stop the service? </li>
  </ol>
  
  <p>Note: I am trying to write the service in C.</p>
  
  <p>Thanks.</p>