TCnServiceController.GetServices Method
Retrieves all the services on the local computer, except for the device driver services.
public class function GetServices: _ServiceControllerArray; overload; static;
Return Value
Type: _ServiceControllerArray
An array of type ServiceController in which each element is associated with a service on the local computer.
GetServices returns only the non-device driver services and the services that are not drivers from the local computer. To retrieve device driver services, call the GetDevices method. Together, the two methods provide access to all the services on a computer.