title: Windows Service: to code a software security feature
body: <p>i want to implement a windows service that functions as a simple license security feature for a software X. The service is meant to run independently from software X.</p>
  
  <p><strong>The rough idea:</strong></p>
  
  <ul>
  <li>The service is like a timebomb for a software Z installed on the machine...</li>
  <li>Whenever the user runs software X, the service pops up a window every 30 minutes to remind the user to register software X.</li>
  <li>If the user doesnt register the software after 1 month, the service will change the license code in a file and kill the software X process.</li>
  <li>On the next start up, software X will read the wrong license code and starts in demo mode.</li>
  <li>The service backs up the license code first before changing it.</li>
  <li>When the user do register, a exe or bat file will be given for the user to run. The file restores the original license file and permanently removes the service.</li>
  </ul>
  
  <p><strong>Additional info:</strong></p>
  
  <ul>
  <li>Is it possible that if the user tries to kill the service, the service will automatically change license code and kill software X before being killed itself?</li>
  <li>If the user changes the license code manually in the file after the service changes it, then the service will automatically change it back and kill software X.</li>
  </ul>
  
  <p>I'm quite the newbie in programming... so i wanna ask for advice first before jumping into the project... Any advice, tips or issues/concerns i should be aware of based on your experience?</p>
  
  <p>I'll most probably code it in C++ but might do it in C#(never used it before) after reading the following discussion:
  <a href="https://stackoverflow.com/questions/593454/easiest-language-to-create-a-windows-service">Easiest language for creating a Windows service</a></p>