Blog Stats
  • Posts - 25
  • Articles - 0
  • Comments - 10
  • Trackbacks - 36

 

Thursday, March 24, 2005

Setting Dependancies between Services in Windows

I am currently creating a set of Windows Services in C#, that need to be loaded in order, for example, Service A needs to be running before Service B.  I notice that in the .Net framework there is a distinct lack of provision for achieving this in C#.  I see that I can use Interop and call the Win32 function, ChangeServiceConfig, but I have not found an example written in C# that allows me to set the Dependancies.

Has anyone got a code snippet / example that I can use, otherwise I have to write this myself, and I hate having to write this type of plumbing logic

Thanks

 

 

Copyright © David Lattimore-Gay