How to restart service after a particular time

Hey guys
I am making a service in VS2010 using c++ and want to know is there any way to restart the service after a particular time,actually i will let user to write restart time in an INI file and service should be able to restart at that time.
When you install the service, you can set it up to be restarted if it crashes.

Your service can read the restart time and use TerminateProcess to kill itself after cleaning up at that time. The Service Control Manager will restart the service for you.
Topic archived. No new replies allowed.