C# Class CloudInit.ServiceHelper

This service helper class taken from the following website http://peterkellyonline.blogspot.com/2011/04/configuring-windows-service.html
Exibir arquivo Open project: bwight/CloudInit.NET

Public Methods

Method Description
ChangeStartMode ( ServiceController svc, ServiceStartMode mode ) : void

Private Methods

Method Description
ChangeServiceConfig ( IntPtr hService, UInt32 nServiceType, UInt32 nStartType, UInt32 nErrorControl, String lpBinaryPathName, String lpLoadOrderGroup, IntPtr lpdwTagId, [ lpDependencies, String lpServiceStartName, String lpPassword, String lpDisplayName ) : System.Boolean
OpenSCManager ( string machineName, string databaseName, uint dwAccess ) : IntPtr
OpenService ( IntPtr hSCManager, string lpServiceName, uint dwDesiredAccess ) : IntPtr

Method Details

ChangeStartMode() public static method

public static ChangeStartMode ( ServiceController svc, ServiceStartMode mode ) : void
svc System.ServiceProcess.ServiceController
mode ServiceStartMode
return void