Example: Skype will be the application to trigger my service, if skype opens then my service should start. If skype closes then my service should close. Is that possible?
I want to put the status in my eventLog to check if it indeed works using something like this:
protected override void OnStart(string[] args)
{
galaxyeventLog.WriteEntry("Skype Start");
}
protected override void OnStop()
{
galaxyeventLog.WriteEntry("Skype Stop");
}