Method | Description | |
---|---|---|
InstallService ( string svcPath, string svcName, string svcDispName ) : bool |
This method installs and runs the service in the service control manager.
|
|
UnInstallService ( string svcName ) : bool |
This method uninstalls the service from the service conrol manager.
|
Method | Description | |
---|---|---|
CloseServiceHandle ( |
||
ControlService ( |
||
CreateService ( |
||
DeleteService ( |
||
GetLastError ( ) : int | ||
OpenSCManager ( string lpMachineName, string lpSCDB, int scParameter ) : |
||
OpenService ( |
||
StartService ( |
public InstallService ( string svcPath, string svcName, string svcDispName ) : bool | ||
svcPath | string | The complete path of the service. |
svcName | string | Name of the service. |
svcDispName | string | Display name of the service. |
return | bool |
public UnInstallService ( string svcName ) : bool | ||
svcName | string | Name of the service to uninstall. |
return | bool |