title: watchdog in vc++ application
body: <p>I have written a simple vc++ background application. What am trying is like a watchdog service that could monitor if the application is running or not. If the application crashed then the service should start the application</p>
  
  <p>For creating a setup through windows installer am using only the app.exe and app.dll.
  Is that possible to create this watchdog - service in the exe itself ?</p>
  
  <p>Unfortunately I have no idea of how to write such a program, does anyone have some example code that would demonstrate this technique please? </p>
  
  <p>if so then how to make the default exe and watchdog exe as a single application to install ?</p>