TCnServiceController.GetServices(String) Method

Retrieves all the services on the specified computer, except for the device driver services.

Namespace: CNClrLib.Component.ServiceController
public
 class function GetServices(MachineName: String): _ServiceControllerArray; overload; static;

Parameters

MachineName
Type: String

The computer from which to retrieve the services.

Return Value

An array of type ServiceController in which each element is associated with a service on the specified computer.

GetServices returns only the non-device driver services and the services that are not drivers from the specified computer. To retrieve device driver services, call the GetDevices method. Together, the two methods provide access to all the services on a computer.