C# Class Service.ServiceEx

Show file Open project: vf1/turnserver Class Usage Examples

Public Methods

Method Description
SetCommandLineArgs ( string serviceName, string parameters ) : void

Private Methods

Method Description
ChangeServiceConfig ( IntPtr hService, uint dwServiceType, uint dwStartType, uint dwErrorControl, string lpBinaryPathName, string lpLoadOrderGroup, IntPtr lpdwTagId, string lpDependencies, string lpServiceStartName, string lpPassword, string lpDisplayName ) : bool
CloseServiceHandle ( IntPtr hSCObject ) : bool
OpenSCManager ( string lpMachineName, string lpDatabaseName, uint dwDesiredAccess ) : IntPtr
OpenService ( IntPtr hSCManager, string lpServiceName, uint dwDesiredAccess ) : IntPtr
QueryServiceConfig ( IntPtr hService, IntPtr lpServiceConfig, uint cbBufSize, uint &pcbBytesNeeded ) : bool

Method Details

SetCommandLineArgs() public static method

public static SetCommandLineArgs ( string serviceName, string parameters ) : void
serviceName string
parameters string
return void