title: Programmatically restart a Windows Service
body: <p>I know this can be done in C#/.Net but I was wondering whether it can be done calling the Windows API?</p>
  
  <p>I have a service which will service DHCP requests, when I want to update the configuration for the service I need to stop the service, rewrite its INI file and then start the service again.</p>
  
  <p>Any help appreciated!</p>