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.
Element Content 1 ServiceType 2 StartType 3 ErrorControl 4 BinaryPathName 5 LoadOrderGroup 6 TagId 7 Dependencies 8 ServiceStartName 9 DisplayName
- 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