Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have built a Windows Service in C# which starts quickly and runs as expected.

However, I have noticed that it will usually take 30 seconds to a minute before windows will get round to starting my service at boot up.

I was wondering if there is anyway to improve this time or prioritize my service so it is started sooner?
Posted
Comments
Kornfeld Eliyahu Peter 3-Feb-14 8:05am    
You may have something special in your start code that take that amount of time?
You may show the code here and hope for someone spot it...

1 solution

While you can do this, generally it's not a good idea. Basically, each service belongs to a service group. The order of these service groups can be edited by double clicking and editing the List value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceGroupOrder. As I say, this is not a great idea - if you get it wrong, you will probably end up hosing your Windows install.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900