service onstart code is not executing while shutdown and poweron

  application-start, c++, windows, windows-services

windows service on start code is not executing while shutdown and restart device. But while device is restarting on start code is running. I want to execute a process while device is starting. while device starts service will start. so I thought inside onstart I can run the process.
But while simply shutdown and power on service onstart code is not executing

Source: StackOverflow

LEAVE A COMMENT