There is a code in C ++ (VS2008 environment), which the executive file itself puts as a service with autostart. Run as a service does not want, but appeared in the list of services. There is no answer from the program itself when the OS calls it to find out: are you a service or not? The program does not know that it is a service! How to teach her? Windows displays the type:

Failed to start the My Service_Name service on the Local Computer. Error 1053: The service did not respond to the request in a timely manner.

  • Once did so . - KaZaca

1 answer 1

Well, you can even run a regular Win application as a service. For this there are many utilities. For example, (what a surprise!) Runasservice

Otherwise, all services must be composed of a specific pattern. I propose to look at materials on independent writing of services through the following links:

  1. Creating your own Windows Service ;
  2. We write the Windows service ;
  3. Template "Windows Service" .