Sends a custom control request to the specified windows service.
ControlService(cServiceName | nServiceHandle, nControlCode [, cServer [, cDatabase]])
Parameters
- cServiceName | nServiceHandle
Either the name of the service or a numeric handle returned from the OpenService function.
- nControlCode
The custom controlcode to send to the service.
Valid controlcodes are in the range 128 to 255.
- cServer (optional)
The server name on which the service is running.
See MSDN help for OpenSCManager.
- cDatabase (optional)
The database under which the service is registered.
See MSDN help for OpenSCManager.
Return Value
Always .T.
See Also
Reference
ADependentServices
AServiceConfig
AServices
AServiceStatus
CloseServiceHandle
ContinueService
CreateService
OpenService
PauseService
StartService
StopService
WaitForServiceStatus