Stores configuration parameters of the specified windows service into an array.

AServiceConfig(cArrayName, cServiceName | nServiceHandle [, cServer [, cDatabase]])

Parameters

cArrayName

On return the array contains the following information from the QUERY_SERVICE_CONFIG structure.

ElementContent
1ServiceType
2StartType
3ErrorControl
4BinaryPathName
5LoadOrderGroup
6TagId
7Dependencies
8ServiceStartName
9DisplayName
cServiceName | nServiceHandle

Either the name of the service or a numeric handle returned from the OpenService function.

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
AServices
AServiceStatus
CloseServiceHandle
ContinueService
ControlService
CreateService
OpenService
PauseService
StartService
StopService
WaitForServiceStatus

Used WinApi functions

QueryServiceConfig
OpenSCManager
OpenService
CloseServiceHandle