title: List service and services status under Win-7
body: <p>I have a service monitor app that monitors the status of three other servers app - you know those kind of green, red status stuff, start, stop, etc.</p>
  
  <p>The problem is that it shows the wrong state in Windows 7 even if the user is the administrator.</p>
  
  <p>The start, stop buttons are disabled and the install button enabled, the status color is grey which is also wrong. The start button should be enabled with the service status showing green - the apps are running.</p>
  
  <p>If the application is run with the setting "run as administrator" then it behaves normally.</p>
  
  <p>The application is written in Delphi 7 and works perfectly in other versions of Windows.
  This line of code:</p>
  
  <pre><code>OpenSCManager(PChar(sMachine), Nil, SC_MANAGER_ALL_ACCESS);
  </code></pre>
  
  <p>always return 0 under Win7, causing the problem.</p>
  
  <p>Any ideas and if possible, any workaround apart from "run as administrator".</p>