TCnServiceController.GetServices(String) Method
Retrieves all the services on the specified computer, except for the device driver services.
public class function GetServices(MachineName: String): _ServiceControllerArray; overload; static;
Parameters
- MachineName
- Type: String
The computer from which to retrieve the services.
Return Value
Type: _ServiceControllerArray
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.