My Development Notes

By Haemoglobin
3/10/2010 (revision 1)

Services

ServiceBase.ServiceName //Designer property
ServiceBase.ServicesDependedOn  //Designer property

net start servicename

OnStartMust return (starts a thread);
OnStop
OnPauseServiceBase.CanPauseAndContinue
OnContinue
OnShutdownServiceBase.CanShutdown
OnPowerEventServiceBase.CanHandlePowerEvent
LocalServiceNon-priviledged, anonymous credentials to remote server.
NetworkServiceCan authenticate to other computers on network
LocalSystemAlmost unlimited priviledges
UserPermissions of user account provided
ServiceController sc = new ServiceController("ServiceName"); 
sc.Stop(); 
sc.Start(); 

InstallUtil /u <service.exe>

ServiceProcessInstaller.Account, .Username, .Password
ServiceInstaller.StartType

Comments

Powered by BlogEngine.NET 1.6.1.0 | Design by styleshout | Enhanced by GravityCube.net | 1.4.5 Changes by zembian.com | Adapted by HamishGraham.NET
(c) 2010 Hamish Graham. Banner Image (c) Chris Gin