Methods to Control the Service Overview

Run Service ActiveX Control provides the following methods to control the service:

MethodBrief Description
AcceptControlsSet events that have to be processed by service
CreateServiceCreates a service object and adds it to the specified service control manager database
ChangeServiceConfigChanges the configuration parameters of a service
DeleteServiceMarks the specified service for deletion from the service control manager database
StartServiceStarts a service
StopServiceStops a service
PauseServicePauses a service
ServiceConnects the main thread of a service process to the service control manager, which causes the thread to become service control dispatcher thread for the calling process.
NewThreadServiceConnects the new thread of a service process to the service control manager, which causes the thread to become service control dispatcher thread for the calling process. Unlike Service method, this method does not block the current thread.


See also

Run Service Events Overview, Run Service Properties Overview