Detecting Windows Service Start/Stop

I tried to setup scheduled task that starts My App when windows service starts. However, I could not setup with GUI. Because it can not be help, instead, I setup by XPATH format. The scheduled task is kicked by SCM's System Event. Note that this is only used for system locale being japanese.

XPATH which detects windows service start/stop.
 <Query Id="0" Path="System">
   <Select Path="System">
     *[System[Provider[@Name='Service Control Manager'] and (Level = 4) and (EventID = 7036)]]
     [EventData[Data[@Name='param1']='svc name'][Data[@Name='param2']='実行中']]
I have technical job experience in enbedded software development and server side infrastructure/application engineering. I'm interested in programming and computer security.
To write down my technical knowledge in the place where I can access from anywhere. To share my program source code. To train my writing skill.
  • LinkedIn (preparing)

  • Twitter

  • Facebook (preparing)

  • GitHub

  • StackOverFlow (preparing)