smsclictr.automation library
Set the Service start mode

Namespace:  smsclictr.automation
Assembly:  smsclictr.automation(in smsclictr.automation.dll) Version: 1.1.3731.16627 (1.1.2.4)

Syntax

C#
public 
int 
SetServiceStartMode(
	
ManagementObject 
Service,
	
string 
StartMode
)

Parameters

Service
Type: System.Management . . :: . ManagementObject
Win32_Service ManagementObject
StartMode
Type: System . . :: . String
Value Meaning
Boot Device driver started by the operating system loader. This value is valid only for driver services.
System Device driver started by the operating system initialization process. This value is valid only for driver services.
Automatic Service to be started automatically by the service control manager during system startup.
Manual Service to be started by the service control manager when a process calls the StartService method.
Disabled Service that can no longer be started.

Return Value

See Also